migration
This commit is contained in:
@@ -3,6 +3,7 @@ import { AdminRole, Prisma } from '@prisma/client';
|
||||
import * as bcrypt from 'bcryptjs';
|
||||
import { PrismaService } from '../../prisma/prisma.service';
|
||||
import { TableService } from '../admin-table/table.service';
|
||||
import { NO_PASSWORD_YET_HASH } from '../auth/password-hash';
|
||||
import type { TableQueryDto } from '../admin-table/table-query.dto';
|
||||
|
||||
/**
|
||||
@@ -327,7 +328,7 @@ export class AdminBranchesService {
|
||||
fullName,
|
||||
mobile: phone,
|
||||
// No password is set: the supervisor cannot sign in until one is issued.
|
||||
passwordHash: '',
|
||||
passwordHash: NO_PASSWORD_YET_HASH,
|
||||
role: AdminRole.WORKSHOP_SUPERVISOR,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user