Files
drive/packages/convex/fileshare.ts

13 lines
333 B
TypeScript
Raw Normal View History

2025-10-21 23:45:04 +00:00
import { v } from "convex/values"
import { apiKeyAuthenticatedQuery } from "./functions"
import * as FileShare from "./model/fileshare"
export const findFileShare = apiKeyAuthenticatedQuery({
args: {
shareToken: v.string(),
},
handler: async (ctx, { shareToken }) => {
return await FileShare.find(ctx, { shareToken })
},
})