wangrong
8 小时以前 0d90e20ec20f0aeee642756a7ebf9e8514174124
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();
      }