Skip to content

Commit

Permalink
config: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ADKaster committed Jul 9, 2024
1 parent 9786abd commit 24cf2d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ const envSchema = z.object({
required_error: "DISCORD_TOKEN was not found, either it or the .env file are missing",
})
.trim()
.min(1, "DISCORD_TOKEN was not of the minimum lenght it is either malformed or incomplete"),
.min(1, "DISCORD_TOKEN was not of the minimum length it is either malformed or incomplete"),
GITHUB_TOKEN: z
.string({
// eslint-disable-next-line camelcase -- Param isn't camelcase
required_error: "GITHUB_TOKEN was not found, either it or the .env file are missing",
})
.trim()
.min(1, "GITHUB_TOKEN was not of the minimum lenght it is either malformed or incomplete")
.min(1, "GITHUB_TOKEN was not of the minimum length it is either malformed or incomplete")
.optional(),
GUILD_ID: z
.string({
// eslint-disable-next-line camelcase -- Param isn't camelcase
required_error: "GUILD_ID was not found, either it or the .env file are missing",
})
.trim()
.min(1, "GUILD_ID was not of the minimum lenght it is either malformed or incomplete"),
.min(1, "GUILD_ID was not of the minimum length it is either malformed or incomplete"),
});

const envParse = envSchema.safeParse({
Expand Down

0 comments on commit 24cf2d5

Please sign in to comment.