mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 02:31:46 +00:00
Remove maxUses from License.ts model
This commit is contained in:
@ -7,7 +7,6 @@ export interface ILicense {
|
|||||||
groups?: string[],
|
groups?: string[],
|
||||||
permissions?: string[],
|
permissions?: string[],
|
||||||
meta: { [key: string]: string },
|
meta: { [key: string]: string },
|
||||||
maxUses: number,
|
|
||||||
currentUses: number,
|
currentUses: number,
|
||||||
expirationDate?: Date
|
expirationDate?: Date
|
||||||
}
|
}
|
||||||
@ -27,10 +26,6 @@ const LicenseSchema = new Schema<ILicense>({
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: {}
|
default: {}
|
||||||
},
|
},
|
||||||
maxUses: {
|
|
||||||
type: Number,
|
|
||||||
default: -1
|
|
||||||
},
|
|
||||||
currentUses: {
|
currentUses: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 0
|
default: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user