Remove maxUses from Project.ts model

This commit is contained in:
Mathias Wagner
2024-07-30 21:41:44 +02:00
parent 938c0adbed
commit 69aba0803a

View File

@ -6,8 +6,7 @@ export interface IProjectDefaults {
licenseKey: string, licenseKey: string,
groups: string[], groups: string[],
permissions: string[], permissions: string[],
expirationDate: Date, expirationDate: Date
maxUses: number
} }
export interface IProject { export interface IProject {
@ -52,7 +51,7 @@ const ProjectSchema = new Schema<IProject>({
}, },
defaults: { defaults: {
type: Object, type: Object,
default: { licenseKey: "NNUN-UUNN-UNUU-NUUN", groups: [], expirationDate: new Date(0), permissions: [], maxUses: -1 }, default: { licenseKey: "NNUN-UUNN-UNUU-NUUN", groups: [], expirationDate: new Date(0), permissions: [] },
} }
}); });