Skip to content

Commit 795a62b

Browse files
committed
fix column filter
1 parent 847119f commit 795a62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stiller-backend/pkg/dbutils/generals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const (
249249
func UpdateSlot(gallery string, ref string, updater SlotUpdateFlag, newval any, conn *sqlite.Conn) error {
250250
base_update_stmt := sqlf.
251251
Update("galleryslot").
252-
Where("gallery in (select id from gallery where id = ?) and slotid = ?", gallery, ref)
252+
Where("gallery in (select id from gallery where slug = ?) and slotid = ?", gallery, ref)
253253

254254
switch (updater) {
255255
case UPDATE_RES:

0 commit comments

Comments
 (0)