Register: Add default values for nextDrop/Claim/Daily

Since we changed the datatype to TIMESTAMP we no longer have DB native default values
therefore we supply them on register.
This commit is contained in:
2023-03-14 16:08:04 +01:00
parent 0f4b23b4ab
commit 4a9450e82e

View File

@@ -23,6 +23,9 @@ module.exports = {
await User.create({
discordId: interaction.user.id,
active: 1,
nextDropReset: 0,
nextClaimReset: 0,
nextDaily: 0
});
interaction.editReply({
content: "You are now registered",