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

Update GuildArchives.ts

This commit is contained in:
srqc 2023-02-09 19:58:22 -05:00 committed by GitHub
parent 930fe19566
commit 73d83e606e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,7 +117,7 @@ export class GuildArchives extends BaseGuildRepository<ArchiveEntry> {
guild: Guild, guild: Guild,
expiresAt?: moment.Moment, expiresAt?: moment.Moment,
): Promise<string> { ): Promise<string> {
if (expiresAt == null) { if (!expiresAt) {
expiresAt = moment.utc().add(DEFAULT_EXPIRY_DAYS, "days"); expiresAt = moment.utc().add(DEFAULT_EXPIRY_DAYS, "days");
} }