File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 22
33import { db } from "@cap/database" ;
44import { getCurrentUser } from "@cap/database/auth/session" ;
5- import {
6- folders ,
7- sharedVideos ,
8- spaceVideos ,
9- videos ,
10- } from "@cap/database/schema" ;
5+ import { sharedVideos , spaceVideos , videos } from "@cap/database/schema" ;
116import type { Space , Video } from "@cap/web-domain" ;
12- import { and , eq , inArray , isNull } from "drizzle-orm" ;
7+ import { and , eq , inArray } from "drizzle-orm" ;
138import { revalidatePath } from "next/cache" ;
149
1510export async function removeVideosFromSpace (
@@ -42,7 +37,6 @@ export async function removeVideosFromSpace(
4237 const isAllSpacesEntry = user . activeOrganizationId === spaceId ;
4338
4439 if ( isAllSpacesEntry ) {
45- // Remove from organization level (sharedVideos table)
4640 await db ( )
4741 . delete ( sharedVideos )
4842 . where (
You can’t perform that action at this time.
0 commit comments