bugfix lol

This commit is contained in:
Flummi 2022-03-31 19:50:44 +02:00
parent c498a33cbe
commit f328ce14de

View File

@ -105,11 +105,8 @@ export default router => {
else {
// update
await db`
update "tags_assign" set ${
db({
tag_id: db`(array[2,1])[tag_id]`
}, tag_id)
}
update "tags_assign"
set tag_id = ${db`(array[2,1])[tag_id]`}
where tag_id = any(array[1,2])
and item_id = ${+postid}
`;