Skip to content

Commit

Permalink
fix verify email procs
Browse files Browse the repository at this point in the history
  • Loading branch information
aradwann committed Feb 5, 2024
1 parent 976c031 commit b1e25c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions db/migrations/procs/user/create_verify_email.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ RETURNS TABLE (
secret_code VARCHAR,
is_used BOOLEAN,
created_at TIMESTAMP WITH TIME ZONE,
expires_at_at TIMESTAMP WITH TIME ZONE,
role VARCHAR
expires_at_at TIMESTAMP WITH TIME ZONE
) AS $$
BEGIN
RETURN QUERY
Expand All @@ -25,8 +24,6 @@ BEGIN
verify_emails.secret_code,
verify_emails.is_used,
verify_emails.created_at,
verify_emails.expired_at,
verify_emails.role VARCHAR;

verify_emails.expired_at;
END;
$$ LANGUAGE plpgsql;
3 changes: 1 addition & 2 deletions db/migrations/procs/user/update_verify_email.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ BEGIN
verify_emails.secret_code,
verify_emails.is_used,
verify_emails.created_at,
verify_emails.expired_at,
verify_emails.role;
verify_emails.expired_at;

END;
$$ LANGUAGE plpgsql;

0 comments on commit b1e25c1

Please sign in to comment.