refactor: Add explicit types for workspace and project member checks

This commit is contained in:
Yusuf İpek
2026-02-07 17:28:46 +03:00
parent d01c2247b5
commit 49c3ac61ea
7 changed files with 9 additions and 8 deletions
@@ -106,7 +106,7 @@ export async function POST(request: NextRequest, { params }: RouteParams) {
const nextVersionNumber = (video.versions[0]?.versionNumber || 0) + 1;
// Use transaction to handle active flag
const version = await db.$transaction(async (tx) => {
const version = await db.$transaction(async (tx: Parameters<Parameters<typeof db.$transaction>[0]>[0]) => {
// If setActive, deactivate all other versions
if (setActive) {
await tx.videoVersion.updateMany({