issue #5
This commit is contained in:
parent
e72b86c981
commit
d781290430
|
@ -163,6 +163,12 @@ export default (router, tpl) => {
|
||||||
q = q.andWhere("user_id", req.session.id);
|
q = q.andWhere("user_id", req.session.id);
|
||||||
const reply = !!(await q);
|
const reply = !!(await q);
|
||||||
|
|
||||||
|
await sql('tags') // delete not used tags
|
||||||
|
.whereNotIn('id', sql('tags_assign').select('tag_id'))
|
||||||
|
.andWhereNot('tag', 'sfw')
|
||||||
|
.andWhereNot('tag', 'nsfw')
|
||||||
|
.del();
|
||||||
|
|
||||||
return res.reply({ body: JSON.stringify({
|
return res.reply({ body: JSON.stringify({
|
||||||
success: reply,
|
success: reply,
|
||||||
tagid: tagid,
|
tagid: tagid,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user