mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update GuildSavedMessages.ts
This commit is contained in:
parent
8954ed6b78
commit
096d9c8289
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ export class GuildSavedMessages extends BaseGuildRepository<SavedMessage> {
|
||||||
.createQueryBuilder()
|
.createQueryBuilder()
|
||||||
.where("guild_id = :guild_id", { guild_id: this.guildId })
|
.where("guild_id = :guild_id", { guild_id: this.guildId })
|
||||||
.andWhere("user_id = :user_id", { user_id: userId })
|
.andWhere("user_id = :user_id", { user_id: userId })
|
||||||
.andWhere("deleted_at IS NULL");
|
.orderBy("posted_at");
|
||||||
|
|
||||||
if (limit != null) {
|
if (limit != null) {
|
||||||
query = query.limit(limit);
|
query = query.limit(limit);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue