3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Added created_at field to reminders table. Added time remaining timestamp to reminders command. Added creation date timestamp to reminder activation message

This commit is contained in:
roflmaoqwerty 2020-01-08 14:29:49 +11:00
parent 4e1b135724
commit 17decd09d5
4 changed files with 44 additions and 6 deletions

View file

@ -34,13 +34,14 @@ export class GuildReminders extends BaseGuildRepository {
});
}
async add(userId: string, channelId: string, remindAt: string, body: string) {
async add(userId: string, channelId: string, remindAt: string, body: string, created_at: string) {
await this.reminders.insert({
guild_id: this.guildId,
user_id: userId,
channel_id: channelId,
remind_at: remindAt,
body,
created_at
});
}
}

View file

@ -15,4 +15,6 @@ export class Reminder {
@Column() remind_at: string;
@Column() body: string;
@Column() created_at: string
}