Remove getPhotos logging
This commit is contained in:
parent
2985b12a6c
commit
1a957f8d3e
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user