mirror of
https://github.com/nimbusdotstorage/Nimbus
synced 2026-04-22 17:45:03 +02:00
tweaked PR 111
- added zod validation to backend. updated front end based on validation schema types - cleaned up logic to be more uniform and idiomatic
This commit is contained in:
@@ -23,6 +23,7 @@ export function useGetFiles({ parentId, pageSize, pageToken, returnedValues }: G
|
||||
});
|
||||
return await response.json();
|
||||
},
|
||||
enabled: !!providerId && !!accountId,
|
||||
retry: 2,
|
||||
});
|
||||
}
|
||||
@@ -39,6 +40,7 @@ export function useGetFile({ fileId, returnedValues }: GetFileByIdSchema) {
|
||||
});
|
||||
return await response.json();
|
||||
},
|
||||
enabled: !!providerId && !!accountId,
|
||||
retry: 2,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user