We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47ebd8b commit fea093bCopy full SHA for fea093b
2 files changed
server/controllers/project.js
@@ -626,6 +626,7 @@ class projectController extends baseController {
626
await interfaceInst.delByProjectId(id);
627
await interfaceCaseInst.delByProjectId(id);
628
await interfaceColInst.delByProjectId(id);
629
+ await this.followModel.delByProjectId(id);
630
yapi.emitHook('project_del', id).then();
631
let result = await this.Model.del(id);
632
ctx.body = yapi.commons.resReturn(result);
server/models/follow.js
@@ -42,6 +42,12 @@ class followModel extends baseModel {
42
});
43
}
44
45
+ delByProjectId(projectid){
46
+ return this.model.remove({
47
+ projectid: projectid
48
+ })
49
+ }
50
+
51
list(uid) {
52
return this.model
53
.find({
0 commit comments