guhongwei 4 년 전
부모
커밋
b524cf0d2a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/user.js

+ 1 - 1
app/service/user.js

@@ -182,7 +182,7 @@ class UserService extends CrudService {
   async delete({ id }) {
     const res = await this.model.update({ _id: ObjectId(id) }, { isdel: '1' });
     if (res) {
-      const arr = await this.ctx.app.config.axios.product.model.updateMany({ userid: ObjectId(id) }, { isdel: '1' });
+      const arr = await this.ctx.app.config.axios.product.model.update({ userid: ObjectId(id) }, { isdel: '1' });
       if (arr) {
         return arr;
       }