3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

Change amount of nicknames stored to the intended 10

This commit is contained in:
Dark 2020-06-30 23:44:58 +02:00
parent b4e034e3d8
commit 83b7e5a2f2

View file

@ -2,7 +2,6 @@ import { BaseGuildRepository } from "./BaseGuildRepository";
import { getRepository, In, Repository } from "typeorm";
import { NicknameHistoryEntry } from "./entities/NicknameHistoryEntry";
import { MINUTES, SECONDS, sorter } 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();