mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Merge pull request #96 from DarkView/k30_fixNicknameStorage
[K30] Change nickname storage to the intended 10
This commit is contained in:
commit
dc25b67672
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ import { BaseGuildRepository } from "./BaseGuildRepository";
|
|||
import { getRepository, In, Repository } from "typeorm";
|
||||
import { NicknameHistoryEntry } from "./entities/NicknameHistoryEntry";
|
||||
import { MINUTES, SECONDS } from "../utils";
|
||||
import { MAX_USERNAME_ENTRIES_PER_USER } from "./UsernameHistory";
|
||||
import { isAPI } from "../globals";
|
||||
import { cleanupNicknames } from "./cleanup/nicknames";
|
||||
|
||||
|
@ -65,7 +64,7 @@ export class GuildNicknameHistory extends BaseGuildRepository {
|
|||
.where("guild_id = :guildId", { guildId: this.guildId })
|
||||
.andWhere("user_id = :userId", { userId })
|
||||
.orderBy("id", "DESC")
|
||||
.skip(MAX_USERNAME_ENTRIES_PER_USER)
|
||||
.skip(MAX_NICKNAME_ENTRIES_PER_USER)
|
||||
.take(99_999)
|
||||
.getMany();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue