mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
Compare commits
2 Commits
a862442979
...
3209ce1cd2
| Author | SHA1 | Date | |
|---|---|---|---|
|
3209ce1cd2
|
|||
|
af5d887bd1
|
@@ -1,6 +1,5 @@
|
|||||||
import { createFileRoute, Outlet } from "@tanstack/react-router"
|
import { createFileRoute, Outlet } from "@tanstack/react-router"
|
||||||
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar"
|
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar"
|
||||||
import { Toaster } from "@/components/ui/sonner"
|
|
||||||
import { DashboardSidebar } from "@/dashboard/dashboard-sidebar"
|
import { DashboardSidebar } from "@/dashboard/dashboard-sidebar"
|
||||||
|
|
||||||
export const Route = createFileRoute("/_authenticated/_sidebar-layout")({
|
export const Route = createFileRoute("/_authenticated/_sidebar-layout")({
|
||||||
|
|||||||
@@ -251,9 +251,14 @@ export async function openFile(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const newFileShare = await FilePreview.create(ctx, {
|
const [newFileShare] = await Promise.all([
|
||||||
storageId: file.storageId,
|
FilePreview.create(ctx, {
|
||||||
})
|
storageId: file.storageId,
|
||||||
|
}),
|
||||||
|
ctx.db.patch(fileId, {
|
||||||
|
lastAccessedAt: Date.now(),
|
||||||
|
}),
|
||||||
|
])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
file,
|
file,
|
||||||
|
|||||||
Reference in New Issue
Block a user