Fix postgres try/catch callback

This commit is contained in:
Sam Becker 2024-02-29 23:40:00 -06:00
parent 5d2e598b29
commit 47f88865ad

View File

@ -289,8 +289,6 @@ export type GetPhotosOptions = {
const safelyQueryPhotos = async <T>(callback: () => Promise<T>): Promise<T> => { const safelyQueryPhotos = async <T>(callback: () => Promise<T>): Promise<T> => {
let result: T; let result: T;
result = await callback();
try { try {
result = await callback(); result = await callback();
} catch (e: any) { } catch (e: any) {