Fix: Remove legacy unused tags cleanup (#3651)

This commit is contained in:
Nelson Chan 2023-08-27 18:56:50 +08:00 committed by GitHub
parent 5f85d8f749
commit db42c13e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1116,9 +1116,6 @@ let needSetup = false;
value,
]);
// Cleanup unused Tags
await R.exec("delete from tag where ( select count(*) from monitor_tag mt where tag.id = mt.tag_id ) = 0");
callback({
ok: true,
msg: "Deleted Successfully.",