aboutsummaryrefslogtreecommitdiff
path: root/crates/secd/store/pg/sql/find_identity_by_code.sql
diff options
context:
space:
mode:
Diffstat (limited to 'crates/secd/store/pg/sql/find_identity_by_code.sql')
-rw-r--r--crates/secd/store/pg/sql/find_identity_by_code.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/secd/store/pg/sql/find_identity_by_code.sql b/crates/secd/store/pg/sql/find_identity_by_code.sql
index e016a0e..e5a0970 100644
--- a/crates/secd/store/pg/sql/find_identity_by_code.sql
+++ b/crates/secd/store/pg/sql/find_identity_by_code.sql
@@ -1,4 +1,4 @@
-select identity_email_id
+select identity_email_validation_id
from secd.email_validation
where email_validation_public_id = $1::uuid
--
@@ -8,4 +8,4 @@ select
, i.created_at
from secd.identity i
left join secd.identity_email ie using (identity_id)
-where ie.identity_email_id = $1;
+where ie.identity_email_validation_id = $1;