backend for xcvr appview
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

sql i hardly know her

rachel-mp4 e4205475 2f353fe0

+3 -3
+3 -3
server/internal/db/lexicon.go
··· 195 195 } 196 196 197 197 func (s *Store) QuerySignet(channelUri string, id uint32, ctx context.Context) (signetUri string, signetHandle string, err error) { 198 - row := s.pool.QueryRow(ctx, `SELECT (s.uri, s.author_handle) FROM signets s WHERE s.channel_uri = $1 AND s.message_id = $2`, channelUri, id) 198 + row := s.pool.QueryRow(ctx, `SELECT s.uri, s.author_handle FROM signets s WHERE s.channel_uri = $1 AND s.message_id = $2`, channelUri, id) 199 199 err = row.Scan(&signetUri, &signetHandle) 200 200 if err != nil { 201 201 err = errors.New("error scanning: " + err.Error()) ··· 204 204 } 205 205 206 206 func (s *Store) QuerySignetHandle(uri string, ctx context.Context) (string, error) { 207 - row := s.pool.QueryRow(ctx, `SELECT (s.author_handle) FROM signets s WHERE s.uri = $1`, uri) 207 + row := s.pool.QueryRow(ctx, `SELECT s.author_handle FROM signets s WHERE s.uri = $1`, uri) 208 208 var handle string 209 209 err := row.Scan(&handle) 210 210 if err != nil { ··· 214 214 } 215 215 216 216 func (s *Store) QuerySignetChannelIdNum(uri string, ctx context.Context) (channelUri string, messageID uint32, err error) { 217 - row := s.pool.QueryRow(ctx, `SELECT (s.channel_uri, message_id) FROM signets s WHERE s.uri = $1`, uri) 217 + row := s.pool.QueryRow(ctx, `SELECT s.channel_uri, s.message_id FROM signets s WHERE s.uri = $1`, uri) 218 218 err = row.Scan(&channelUri, &messageID) 219 219 if err != nil { 220 220 err = errors.New("BOBOBOBOBOBOL " + err.Error())