fix index name
All checks were successful
Build / build (22) (push) Successful in 38s
Build / build (20) (push) Successful in 1m16s
Build / build (18) (pull_request) Successful in 41s
Build / build (18) (push) Successful in 1m26s
Build / build (20) (pull_request) Successful in 1m17s
Build / build (22) (pull_request) Successful in 38s
All checks were successful
Build / build (22) (push) Successful in 38s
Build / build (20) (push) Successful in 1m16s
Build / build (18) (pull_request) Successful in 41s
Build / build (18) (push) Successful in 1m26s
Build / build (20) (pull_request) Successful in 1m17s
Build / build (22) (pull_request) Successful in 38s
This commit is contained in:
parent
e8211a3881
commit
08b01fee43
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user