Skip to content

Commit ab8071e

Browse files
Graphite borked it
1 parent 22ebbe2 commit ab8071e

File tree

9 files changed

+17
-13
lines changed

9 files changed

+17
-13
lines changed

apps/desktop/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dev": "pnpm -w cap-setup && dotenv -e ../../.env -- pnpm run preparescript && dotenv -e ../../.env -- pnpm tauri dev",
66
"build:tauri": "dotenv -e ../../.env -- pnpm run preparescript && dotenv -e ../../.env -- pnpm tauri build",
77
"preparescript": "node scripts/prepare.js",
8-
"localdev": "dotenv -e ../../.env -- vinxi dev --port 3001",
8+
"localdev": "dotenv -e ../../.env -- vinxi dev --port 3002",
99
"build": "vinxi build",
1010
"tauri": "tauri"
1111
},
@@ -54,7 +54,7 @@
5454
"@ts-rest/core": "^3.52.1",
5555
"@types/react-tooltip": "^4.2.4",
5656
"cva": "npm:class-variance-authority@^0.7.0",
57-
"effect": "^3.17.7",
57+
"effect": "^3.17.13",
5858
"mp4box": "^0.5.2",
5959
"posthog-js": "^1.215.3",
6060
"solid-js": "^1.9.3",

apps/desktop/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"mainBinaryName": "Cap - Development",
66
"build": {
77
"beforeDevCommand": "pnpm localdev",
8-
"devUrl": "http://localhost:3001",
8+
"devUrl": "http://localhost:3002",
99
"beforeBuildCommand": "pnpm turbo build --filter @cap/desktop",
1010
"frontendDist": "../.output/public"
1111
},

apps/discord-bot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"scripts": {
55
"deploy": "wrangler deploy",
6-
"dev": "wrangler dev",
6+
"bot-dev": "wrangler dev",
77
"start": "wrangler dev",
88
"test": "vitest",
99
"cf-typegen": "wrangler types"

apps/tasks/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"main": "src/index.ts",
66
"scripts": {
77
"start": "node dist/src/index.js",
8-
"dev": "ts-node src/index.ts",
98
"build": "tsc",
109
"start:dist": "node dist/src/index.js",
1110
"test": "jest",

apps/web/actions/caps/share.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ import {
1111
spaceVideos,
1212
videos,
1313
} from "@cap/database/schema";
14+
import type { Video } from "@cap/web-domain";
1415
import { and, eq, inArray } from "drizzle-orm";
1516
import { revalidatePath } from "next/cache";
1617

1718
interface ShareCapParams {
18-
capId: string;
19+
capId: Video.VideoId;
1920
spaceIds: string[];
2021
public?: boolean;
2122
}

apps/web/actions/folders/moveVideoToFolder.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { db } from "@cap/database";
44
import { getCurrentUser } from "@cap/database/auth/session";
55
import { folders, spaceVideos, videos } from "@cap/database/schema";
6+
import type { Folder, Video } from "@cap/web-domain";
67
import { and, eq } from "drizzle-orm";
78
import { revalidatePath } from "next/cache";
89

@@ -11,8 +12,8 @@ export async function moveVideoToFolder({
1112
folderId,
1213
spaceId,
1314
}: {
14-
videoId: string;
15-
folderId: string | null;
15+
videoId: Video.VideoId;
16+
folderId: Folder.FolderId | null;
1617
spaceId?: string | null;
1718
}) {
1819
const user = await getCurrentUser();
@@ -23,7 +24,7 @@ export async function moveVideoToFolder({
2324

2425
// Get the current video to know its original folder
2526
const [currentVideo] = await db()
26-
.select({ folderId: videos.folderId })
27+
.select({ folderId: videos.folderId, id: videos.id })
2728
.from(videos)
2829
.where(eq(videos.id, videoId));
2930

apps/web/actions/folders/updateFolder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { db } from "@cap/database";
44
import { getCurrentUser } from "@cap/database/auth/session";
55
import { folders } from "@cap/database/schema";
6+
import type { Folder } from "@cap/web-domain";
67
import { and, eq } from "drizzle-orm";
78
import { revalidatePath } from "next/cache";
89

@@ -12,10 +13,10 @@ export async function updateFolder({
1213
color,
1314
parentId,
1415
}: {
15-
folderId: string;
16+
folderId: Folder.FolderId;
1617
name?: string;
1718
color?: "normal" | "blue" | "red" | "yellow";
18-
parentId?: string | null;
19+
parentId?: Folder.FolderId | null;
1920
}) {
2021
const user = await getCurrentUser();
2122
if (!user || !user.activeOrganizationId)

apps/web/actions/organizations/add-videos.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import {
99
sharedVideos,
1010
videos,
1111
} from "@cap/database/schema";
12+
import type { Video } from "@cap/web-domain";
1213
import { and, eq, inArray } from "drizzle-orm";
1314
import { revalidatePath } from "next/cache";
1415

1516
export async function addVideosToOrganization(
1617
organizationId: string,
17-
videoIds: string[],
18+
videoIds: Video.VideoId[],
1819
) {
1920
try {
2021
const user = await getCurrentUser();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import {
99
sharedVideos,
1010
videos,
1111
} from "@cap/database/schema";
12+
import type { Video } from "@cap/web-domain";
1213
import { and, eq, inArray } from "drizzle-orm";
1314
import { revalidatePath } from "next/cache";
1415

1516
export async function removeVideosFromOrganization(
1617
organizationId: string,
17-
videoIds: string[],
18+
videoIds: Video.VideoId[],
1819
) {
1920
try {
2021
const user = await getCurrentUser();

0 commit comments

Comments
 (0)