Fix issue with linking default user to org in single tenant + no-auth mode

This commit is contained in:
bkellam 2025-03-23 21:56:46 -07:00
parent d8fd958b0e
commit c89226871e

View file

@ -54,6 +54,14 @@ const initSingleTenancy = async () => {
},
data: {
members: {
upsert: {
where: {
orgId_userId: {
orgId: SINGLE_TENANT_ORG_ID,
userId: SINGLE_TENANT_USER_ID,
}
},
update: {},
create: {
role: OrgRole.MEMBER,
user: {
@ -62,6 +70,7 @@ const initSingleTenancy = async () => {
}
}
}
}
});
}