ensure that guild names are unique
This commit is contained in:
parent
5cede0f3a7
commit
38e1c6ce9c
@ -71,7 +71,7 @@ const longMOTDSchema = new Schema<ILongMOTD>(
|
|||||||
|
|
||||||
const guildSchema = new Schema<IGuildDatabase>(
|
const guildSchema = new Schema<IGuildDatabase>(
|
||||||
{
|
{
|
||||||
Name: { type: String, required: true },
|
Name: { type: String, required: true, unique: true },
|
||||||
MOTD: { type: String, default: "" },
|
MOTD: { type: String, default: "" },
|
||||||
LongMOTD: { type: longMOTDSchema, default: undefined },
|
LongMOTD: { type: longMOTDSchema, default: undefined },
|
||||||
DojoComponents: { type: [dojoComponentSchema], default: [] },
|
DojoComponents: { type: [dojoComponentSchema], default: [] },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user