src/modules/user/service/address.ts
@@ -27,7 +27,7 @@ async list() { return this.userAddressEntity .createQueryBuilder() .where('userId = :userId ', { userId: this.ctx.user.id }) .where('userId = :userId ', { userId: this.ctx.user.userId }) .addOrderBy('isDefault', 'DESC') .getMany(); } @@ -44,7 +44,7 @@ .createQueryBuilder() .update() .set({ isDefault: false }) .where('userId = :userId ', { userId: this.ctx.user.id }) .where('userId = :userId ', { userId: this.ctx.user.userId }) .andWhere('id != :id', { id: data.id }) .execute(); }