Skip to content

Commit

Permalink
Disabling autocreate for unnecessary collections
Browse files Browse the repository at this point in the history
  • Loading branch information
pdellaert committed Oct 16, 2024
1 parent af65155 commit 557cc94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/schemas/prefixCommandSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const prefixCommandContentSchema = new Schema<IPrefixCommandContent>({
},
content: String,
image: String,
});
}, { autoCreate: false });

export interface IPrefixCommandPermissions extends Document {
roles?: string[],
Expand All @@ -97,7 +97,7 @@ const prefixCommandPermissionsSchema = new Schema<IPrefixCommandPermissions>({
channelsBlocklist: Boolean,
quietErrors: Boolean,
verboseErrors: Boolean,
});
}, { autoCreate: false });

export interface IPrefixCommand extends Document {
commandId: mongoose.Schema.Types.ObjectId;
Expand Down

0 comments on commit 557cc94

Please sign in to comment.