gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cb1f935013b14a3a77ad5cc45a5c18ab9eea7bcd
parent 093cf2ab12a1f6bfa9629917101afffd2aeb8376
Author: Umar Getagazov <umar@handlerug.me>
Date:   Wed, 19 Apr 2023 14:42:00 +0300

[bugfix] Fix the bookmarks list API endpoint returning an empty array (#1700)


Diffstat:
Minternal/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 @@ -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)