fix: use nex table name
CI / Rust CI (push) Failing after 1m12s
Publish & Deploy / Build and Push to Registry (push) Failing after 1m48s
Publish & Deploy / Deploy via SSH (push) Has been skipped

This commit is contained in:
2026-05-07 19:07:14 +02:00
parent c534299c8e
commit 2e81132f2d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ use uuid::Uuid;
pub async fn ensure_user_exists(pool: &PgPool, user_id: Uuid) -> Result<(), sqlx::Error> {
sqlx::query!(
r#"
INSERT INTO auth.user (id)
INSERT INTO auth.app_user (id)
VALUES ($1)
ON CONFLICT (id) DO NOTHING
"#,
+1 -1
View File
@@ -129,7 +129,7 @@ async fn try_api_key(
r#"
SELECT u.id AS user_id, ak.id as key_id
FROM auth.api_key ak
JOIN auth.user u ON u.id = ak.created_by
JOIN auth.app_user u ON u.id = ak.created_by
WHERE ak.key_hash = $1
AND ak.revoked_at IS NULL
"#,