Skip to content

Commit

Permalink
Merge pull request #116 from infinitybase/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
guimroque authored Jun 13, 2024
2 parents ba9c568 + 0619dfb commit 39f60a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/modules/user/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ export class UserController {

//verify user exists
let existingUser = await this.userService.findByAddress(address);
//if (existingUser) return successful(existingUser, Responses.Created);
if (existingUser) return successful(existingUser, Responses.Created);

if (!existingUser) {
//verify name exists
const existingName = await User.findOne({ where: { name } });
if (existingName) {
if (name && existingName) {
throw new BadRequest({
type: ErrorTypes.Create,
title: 'Error on user create',
Expand Down

0 comments on commit 39f60a9

Please sign in to comment.