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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user