u
This commit is contained in:
@@ -35,14 +35,14 @@ export default function addImage(provider) {
|
||||
* // => { id, fullHash, thumbW, thumbH, thumbHash }
|
||||
*/
|
||||
return async (googleAuthId, categoryId, image, tx) => {
|
||||
const processed = await processAvifImage(image);
|
||||
const fullHash = newFullHash(processed.full.buffer);
|
||||
|
||||
const runAdd = async (runner) => {
|
||||
await access(googleAuthId, categoryId, runner);
|
||||
|
||||
const processed = await processAvifImage(image);
|
||||
|
||||
const sortResult = await runner.query(getSortSql, { categoryId });
|
||||
const sort = sortResult.rows[0].sort;
|
||||
const fullHash = newFullHash(processed.full.buffer);
|
||||
|
||||
let picId;
|
||||
const existingPic = await runner.query(
|
||||
|
||||
Reference in New Issue
Block a user