mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
13 lines
333 B
TypeScript
13 lines
333 B
TypeScript
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 })
|
|
},
|
|
})
|