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