Skip to content

Commit

Permalink
fix: use optional type
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed May 16, 2024
1 parent c2e22d7 commit 32a65a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/user-start-stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function userStartStop(context: Context, command: string): Promise<
const { logger, config, payload } = context;
const { maxConcurrentTasks } = config.miscellaneous;
const { taskStaleTimeoutDuration } = config.timers;
let directive = command.split(" ")[0].replace("/", "");
const directive = command.split(" ")[0].replace("/", "");

if (directive === "stop") {
// todo
Expand Down
2 changes: 1 addition & 1 deletion src/types/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const envSchema = T.Object({
GITHUB_TOKEN: T.String(),
SUPABASE_URL: T.String(),
SUPABASE_KEY: T.String(),
DIRECTIVE: T.String(),
DIRECTIVE: T.Optional(T.String()),
});

export type Env = StaticDecode<typeof envSchema>;

0 comments on commit 32a65a1

Please sign in to comment.