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;
       }