Skip to content

Commit 4456e15

Browse files
committed
fix issue with reminder_due
1 parent b346e60 commit 4456e15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/reminders/remindme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const command: Command = {
101101
user: interaction.user.id,
102102
channel: interaction.channel?.id ? interaction.channel?.id : null,
103103
delay: time,
104+
reminder_due: (Date.now() + time).toString(),
104105
reason: reason,
105106
send_in_channel: sendInChannel
106107
}).save()

src/models/Reminder.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ const reminderSchema = new Schema<Reminder>(
6969
},
7070
reminder_due: {
7171
type: String,
72-
required: true,
73-
default: (Date.now() + (3600 * 1000)).toString
72+
required: true
7473
},
7574
reason: {
7675
type: String,

0 commit comments

Comments
 (0)