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