Repository navigation
Commit 75edef3
committed
db: fix auth_user table alias mismatch
Bun derives the SQL alias from the Go struct name, so the User struct
gets aliased as "user" while the table is "auth_user". This causes
queries with explicit JOIN references to auth_user.id to fail on
PostgreSQL with "invalid reference to FROM-clause entry".
Force the alias to match the table name, same approach already used
for ci_check.
Signed-off-by: Robin Jarry <robin@jarry.cc>1 parent 02d03b1 commit 75edef3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments