fix: kysely query 2
parent
e5be585c03
commit
b86fb6e075
|
@ -257,9 +257,10 @@ export async function getEventType(
|
|||
).as("hosts"),
|
||||
jsonArrayFrom(
|
||||
eb
|
||||
.selectFrom("users")
|
||||
.selectFrom("_user_eventtype")
|
||||
.leftJoin("users", "users.id", "_user_eventtype.B")
|
||||
.whereRef("_user_eventtype.A", "=", "EventType.id")
|
||||
.leftJoin("Credential", "Credential.userId", "users.id")
|
||||
.whereRef("users.id", "=", "EventType.userId")
|
||||
.select((eb) => [
|
||||
jsonArrayFrom(
|
||||
eb
|
||||
|
|
Loading…
Reference in New Issue