fix: too many arguments for sql query

This commit is contained in:
2026-08-31 20:58:22 +02:00
parent 8ab2f3f1bf
commit 755ebefd30
+1 -1
View File
@@ -83,7 +83,7 @@ func (r *InviteRepo) GetInvite(ctx context.Context, code string) (*domain.Invite
func (r *InviteRepo) GetInvites(ctx context.Context, userID string) ([]domain.Invite, error) {
rows, err := r.db.QueryContext(ctx,
"SELECT id, code, expires_at, consumed_at FROM invites WHERE invitee_user_id=$1", userID,
"SELECT id, code, expires_at, consumed_at FROM invites WHERE invitee_user_id=$1",
userID,
)
if err != nil {