We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08caacb commit 88bf9dfCopy full SHA for 88bf9df
2 files changed
apps/web/app/api/desktop/[...route]/video.ts
@@ -125,7 +125,7 @@ app.get(
125
.orderBy(organizations.createdAt);
126
const userOrgIds = userOrganizations.map((org) => org.id);
127
128
- let videoOrgId: string;
+ let videoOrgId!: string;
129
if (orgId) {
130
// Hard error if the user requested org is non-existent or they don't have access.
131
if (!userOrgIds.includes(orgId))
@@ -148,7 +148,6 @@ app.get(
148
.where(eq(users.id, user.id));
149
} else videoOrgId = user.defaultOrgId;
150
}
151
- if (!videoOrgId) throw new Error("Unreachable");
152
153
const idToUse = Video.VideoId.make(nanoId());
154
0 commit comments