Skip to content

Commit 95e8bd1

Browse files
committed
Update remove-videos.ts
1 parent 96d18f2 commit 95e8bd1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

apps/web/actions/spaces/remove-videos.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22

33
import { db } from "@cap/database";
44
import { 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";
116
import type { Space, Video } from "@cap/web-domain";
12-
import { and, eq, inArray, isNull } from "drizzle-orm";
7+
import { and, eq, inArray } from "drizzle-orm";
138
import { revalidatePath } from "next/cache";
149

1510
export 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(

0 commit comments

Comments
 (0)