mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 02:31:46 +00:00
Implement offlineRenewalDays in Project.ts
This commit is contained in:
@ -17,6 +17,7 @@ export interface IProject {
|
|||||||
validationKey: string,
|
validationKey: string,
|
||||||
privateKey: string,
|
privateKey: string,
|
||||||
publicKey: string,
|
publicKey: string,
|
||||||
|
offlineRenewalDays: number,
|
||||||
defaults: IProjectDefaults
|
defaults: IProjectDefaults
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,6 +46,10 @@ const ProjectSchema = new Schema<IProject>({
|
|||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
|
offlineRenewalDays: {
|
||||||
|
type: Number,
|
||||||
|
default: 7
|
||||||
|
},
|
||||||
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: [], maxUses: -1 },
|
||||||
|
|||||||
Reference in New Issue
Block a user