backend for xcvr appview
2
fork

Configure Feed

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

fix some basic ban stuff

+2 -2
+1 -1
server/internal/db/db.go
··· 377 377 banned_at 378 378 FROM bans WHERE id = $1`, id) 379 379 var ban types.Ban 380 - err := row.Scan(&ban.Id, &ban.Reason, &ban.Till, &ban.BannedAt) 380 + err := row.Scan(&ban.Did, &ban.Reason, &ban.Till, &ban.BannedAt) 381 381 if err != nil { 382 382 return nil, err 383 383 }
+1 -1
server/internal/db/oauth.go
··· 102 102 } 103 103 104 104 func (s Store) DeleteAllSessions(ctx context.Context, did string) error { 105 - _, err := s.pool.Exec(ctx, `DELETE FROM sessions WHERE account_did = $1`) 105 + _, err := s.pool.Exec(ctx, `DELETE FROM sessions WHERE account_did = $1`, did) 106 106 return err 107 107 } 108 108