revision on registration role

pull/1/head
Aji Kamaludin 3 years ago
parent f2674a56fb
commit 4ebc99d5ee
No known key found for this signature in database
GPG Key ID: 670E1F26AD5A8099

@ -35,8 +35,8 @@ class RegistrationService {
};
const createUserQuery = {
text: 'INSERT INTO users(id, name, email, password, company_id) VALUES ((select uuid_generate_v4()), $1, $2, $3, $4)',
values: [name, email, hashedPassword, companyId],
text: 'INSERT INTO users(id, name, email, password, role, company_id) VALUES ((select uuid_generate_v4()), $1, $2, $3, $4)',
values: [name, email, hashedPassword, 'admin', companyId],
};
await this._pool.query(createCompanyQuery);

Loading…
Cancel
Save