bugfix lol
This commit is contained in:
parent
c498a33cbe
commit
f328ce14de
|
@ -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}
|
||||
`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user