Skip to content

Commit

Permalink
Merge pull request #121 from hack-the-6ix/develop
Browse files Browse the repository at this point in the history
Discord Helm configuration and bugfixes (#120)
  • Loading branch information
BlazingAsher authored Jul 29, 2023
2 parents 7e5d77a + b5d39b6 commit 5cee76d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions chart/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ data:
DATABASE: {{ .Values.hackthe6ixBackend.secrets.local.mongoUrl | b64enc }}
MAILTRAIN_API_KEY: {{ .Values.hackthe6ixBackend.secrets.local.mailerApiKey | b64enc }}
JWT_SECRET: {{ .Values.hackthe6ixBackend.secrets.local.jwtSecret | b64enc }}
DISCORD_CLIENT_ID: {{ .Values.hackthe6ixBackend.secrets.local.discordClientId | b64enc }}
DISCORD_CLIENT_SECRET: {{ .Values.hackthe6ixBackend.secrets.local.discordClientSecret | b64enc }}
DISCORD_GUILD_ID: {{ .Values.hackthe6ixBackend.secrets.discord.discordGuildId | b64enc }}
{{- end }}
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ hackthe6ixBackend:
mongoUrl: mongodb://localhost:27017/test
mailerApiKey: changeme
jwtSecret: changeme
discordClientId: changeme
discordClientSecret: changeme
discordGuildId: changeme
initialization:
secretName: test-secret
settings:
Expand Down
1 change: 1 addition & 0 deletions src/controller/DiscordController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const queueVerification = async (discordID: string, userData: BasicUser,
queuedTime: Date.now(),
discordID,
guildID: process.env.DISCORD_GUILD_ID,
earliestProcessTime: 0,
revert: false,
verifyData: _assembleReturnInfo(userData)
});
Expand Down
3 changes: 2 additions & 1 deletion src/models/queuedverification/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export const fields = {
type: Number
},
earliestProcessTime: {
type: Number
type: Number,
required: true
},
guildID: {
type: String,
Expand Down

0 comments on commit 5cee76d

Please sign in to comment.