This commit is contained in:
Flummi
2022-03-23 05:59:19 +01:00
parent a507f3be46
commit bf21789d3f
2 changed files with 53 additions and 32 deletions

View File

@ -163,11 +163,11 @@ export default (router, tpl) => {
q = q.andWhere("user_id", req.session.id);
const reply = !!(await q);
await sql('tags') // delete not used tags
/*await sql('tags') // delete unused tags
.whereNotIn('id', sql('tags_assign').select('tag_id'))
.andWhereNot('tag', 'sfw')
.andWhereNot('tag', 'nsfw')
.del();
.del();*/
return res.reply({ body: JSON.stringify({
success: reply,