fix: kysely query 2

get-schedule-edge
supalarry 2023-10-26 11:55:06 +02:00
parent e5be585c03
commit b86fb6e075
1 changed files with 3 additions and 2 deletions

View File

@ -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