File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11import { z } from "zod" ;
22
3- import {
4- getAllFiles ,
5- getAllFolders ,
6- getAllParentsForFolder ,
7- } from "~/server/db/queries" ;
3+ import * as queries from "~/server/db/queries" ;
84
95import DriveContents from "../../drive-contents" ;
106
@@ -21,9 +17,9 @@ export default async function GoogleDriveClone(props: {
2117 const folderId = data . folderId ;
2218
2319 const [ folders , files , parents ] = await Promise . all ( [
24- getAllFolders ( folderId ) ,
25- getAllFiles ( folderId ) ,
26- getAllParentsForFolder ( folderId ) ,
20+ queries . getAllFolders ( folderId ) ,
21+ queries . getAllFiles ( folderId ) ,
22+ queries . getAllParentsForFolder ( folderId ) ,
2723 ] ) ;
2824
2925 return < DriveContents folders = { folders } files = { files } parents = { parents } /> ;
Original file line number Diff line number Diff line change 1+ import "server-only" ; // Ensure this file is only run on the server
2+
13import { eq } from "drizzle-orm" ;
24
35import { db } from "~/server/db" ;
You can’t perform that action at this time.
0 commit comments