feat: guild ads #1390

Merged
Sainan merged 3 commits from guild-ads into main 2025-03-31 04:14:00 -07:00
Showing only changes of commit 08b01fee43 - Show all commits

View File

@ -239,7 +239,7 @@ const guildAdSchema = new Schema<IGuildAdDatabase>({
Tier: { type: Number, required: true } Tier: { type: Number, required: true }
}); });
guildAdSchema.index({ guildId: 1 }, { unique: true }); guildAdSchema.index({ GuildId: 1 }, { unique: true });
guildAdSchema.index({ Expiry: 1 }, { expireAfterSeconds: 0 }); guildAdSchema.index({ Expiry: 1 }, { expireAfterSeconds: 0 });
export const GuildAd = model<IGuildAdDatabase>("GuildAd", guildAdSchema); export const GuildAd = model<IGuildAdDatabase>("GuildAd", guildAdSchema);