Attempt to fix loginPageOrg undefined error

This commit is contained in:
Owen
2025-12-24 12:25:11 -05:00
committed by Owen Schwartz
parent 81a9a94264
commit 284cccbe17
3 changed files with 25 additions and 10 deletions

View File

@@ -48,6 +48,11 @@ async function query(orgId: string) {
)
)
.limit(1);
if (!res) {
return null;
}
return {
...res,
orgId: orgLink.orgs.orgId,