From cb1f935013b14a3a77ad5cc45a5c18ab9eea7bcd Mon Sep 17 00:00:00 2001 From: Umar Getagazov Date: Wed, 19 Apr 2023 14:42:00 +0300 Subject: [PATCH] [bugfix] Fix the bookmarks list API endpoint returning an empty array (#1700) --- internal/db/bundb/statusbookmark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/bundb/statusbookmark.go b/internal/db/bundb/statusbookmark.go index 92567b89a..f7d19cd23 100644 --- a/internal/db/bundb/statusbookmark.go +++ b/internal/db/bundb/statusbookmark.go @@ -40,7 +40,7 @@ func (s *statusBookmarkDB) GetStatusBookmark(ctx context.Context, id string) (*g err := s.conn. NewSelect(). Model(bookmark). - Where("? = ?", bun.Ident("status_bookmark.ID"), id). + Where("? = ?", bun.Ident("status_bookmark.id"), id). Scan(ctx) if err != nil { return nil, s.conn.ProcessError(err)