Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auth-service/src/api/account-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class AccountService extends NatsService {
try {
const { username, password, role } = msg;

const checkUserName = new DatabaseServer().count(User, { username })
const checkUserName = await new DatabaseServer().count(User, { username })

if (checkUserName) {
return new MessageError('An account with the same name already exists.');
Expand Down