bugfix lol
This commit is contained in:
parent
c498a33cbe
commit
f328ce14de
@ -105,11 +105,8 @@ export default router => {
|
|||||||
else {
|
else {
|
||||||
// update
|
// update
|
||||||
await db`
|
await db`
|
||||||
update "tags_assign" set ${
|
update "tags_assign"
|
||||||
db({
|
set tag_id = ${db`(array[2,1])[tag_id]`}
|
||||||
tag_id: db`(array[2,1])[tag_id]`
|
|
||||||
}, tag_id)
|
|
||||||
}
|
|
||||||
where tag_id = any(array[1,2])
|
where tag_id = any(array[1,2])
|
||||||
and item_id = ${+postid}
|
and item_id = ${+postid}
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user