feat: create trpc route to fetch download link (#7495)
* feat: create trpc route to fetch download link Signed-off-by: Udit Takkar <[email protected]> * fix: removing file, adding isdownloadable logix Signed-off-by: Udit Takkar <[email protected]> * chore Signed-off-by: Udit Takkar <[email protected]> * fix: type error Signed-off-by: Udit Takkar <[email protected]> * Some performance enhancements and better error logging * Add error message here too --------- Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
cc1d606ba8
commit
2dddd4ce77
8 files changed
+204
-122
No files matched your search
@@ -433,3 +433,9 @@ export const fromEntries = <
|
||||
): FromEntries<DeepWriteable<E>> => {
|
||||
return Object.fromEntries(entries) as FromEntries<DeepWriteable<E>>;
|
||||
};
|
||||
|
||||
export const getAccessLinkResponseSchema = z.object({
|
||||
download_link: z.string().url(),
|
||||
});
|
||||
|
||||
export type GetAccessLinkResponseSchema = z.infer<typeof getAccessLinkResponseSchema>;
|
||||
Reference in new issue
Block a user