Remove getPhotos logging

This commit is contained in:
Sam Becker 2024-05-20 17:39:06 -05:00
parent 2985b12a6c
commit 1a957f8d3e

View File

@ -312,22 +312,9 @@ export const getPhotos = async (options: GetPhotosOptions = {}) =>
sql.push(limitAndOffset);
values.push(...limitAndOffsetValues);
console.log('getPhotos 01', {
sql: sql.join(' '),
values,
});
return query(sql.join(' '), values);
}, 'getPhotos')
.then(response => {
console.log('getPhotos 02', response);
console.log('getPhotos 03', response.rows);
return response.rows.map(parsePhotoFromDb);
})
.catch(e => {
console.log('getPhotos 04', e);
return [];
});
return query(sql.join(' '), values)
.then(({ rows }) => rows.map(parsePhotoFromDb));
}, 'getPhotos');
export const getPhotosNearId = async (
photoId: string,