From 0fffbfd774aae555dcc807bbb4508da4f69d8ede Mon Sep 17 00:00:00 2001 From: rachel-mp4 Date: Sun, 12 Oct 2025 15:16:58 -0400 Subject: [PATCH] sql syntaxxxxx --- server/internal/db/lexicon.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/internal/db/lexicon.go b/server/internal/db/lexicon.go index 1e34afc..295fbfd 100644 --- a/server/internal/db/lexicon.go +++ b/server/internal/db/lexicon.go @@ -367,7 +367,7 @@ func (s *Store) DeleteImage(uri string, ctx context.Context) error { } func (s *Store) GetImage(uri string, ctx context.Context) (*types.Image, error) { - row := s.pool.QueryRow(ctx, `SELECT ( + row := s.pool.QueryRow(ctx, `SELECT did, signet_uri, blob_cid, @@ -379,7 +379,7 @@ func (s *Store) GetImage(uri string, ctx context.Context) (*types.Image, error) color, cid, posted_at - ) FROM images WHERE uri = $1`, uri) + FROM images WHERE uri = $1`, uri) var image types.Image err := row.Scan(&image.DID, &image.SignetURI, @@ -400,7 +400,7 @@ func (s *Store) GetImage(uri string, ctx context.Context) (*types.Image, error) } func (s *Store) GetImageDidCID(did string, cid string, ctx context.Context) (*types.Image, error) { - row := s.pool.QueryRow(ctx, `SELECT ( + row := s.pool.QueryRow(ctx, `SELECT uri, signet_uri, cid, @@ -411,7 +411,6 @@ func (s *Store) GetImageDidCID(did string, cid string, ctx context.Context) (*ty nick, color, posted_at - ) FROM images WHERE did = $1 AND blob_cid = $2`, did, cid) var image types.Image -- 2.51.2