Invite system and user registration #32

Merged
robin merged 13 commits from dev into main 2026-08-31 21:38:47 +02:00
Showing only changes of commit 755ebefd30 - Show all commits
+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) { func (r *InviteRepo) GetInvites(ctx context.Context, userID string) ([]domain.Invite, error) {
rows, err := r.db.QueryContext(ctx, 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, userID,
) )
if err != nil { if err != nil {