ignored linting
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 5d86275..b6864b8 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -804,10 +804,10 @@
return this.premium.updateOne({ user: user }, { $addToSet: { appliesTo: guild } }, { upsert: true });
}
- removePremium(user: string, guild: string) {
+ async removePremium(user: string, guild: string) {
// console.log("Premium removePremium");
this.cache.set(guild, [false, "", 0, false, new Date(Date.now() + this.cacheTimeout)]);
- return this.premium.updateOne({ user: user }, { $pull: { appliesTo: guild } });
+ return await this.premium.updateOne({ user: user }, { $pull: { appliesTo: guild } });
}
}