mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 14:01:40 +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 })
|
||
|
|
},
|
||
|
|
})
|