fix: include instance Id field in the instance configuration

This commit is contained in:
Davidson Gomes
2023-12-17 06:59:05 -03:00
parent c07e23bf8d
commit cf89601269
7 changed files with 22 additions and 2 deletions

View File

@@ -6,12 +6,14 @@ export class AuthRaw {
_id?: string;
jwt?: string;
apikey?: string;
instanceId?: string;
}
const authSchema = new Schema<AuthRaw>({
_id: { type: String, _id: true },
jwt: { type: String, minlength: 1 },
apikey: { type: String, minlength: 1 },
instanceId: { type: String, minlength: 1 },
});
export const AuthModel = dbserver?.model(AuthRaw.name, authSchema, 'authentication');