Fix postgres try/catch callback
This commit is contained in:
parent
5d2e598b29
commit
47f88865ad
@ -289,8 +289,6 @@ export type GetPhotosOptions = {
|
||||
const safelyQueryPhotos = async <T>(callback: () => Promise<T>): Promise<T> => {
|
||||
let result: T;
|
||||
|
||||
result = await callback();
|
||||
|
||||
try {
|
||||
result = await callback();
|
||||
} catch (e: any) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user