This commit is contained in:
seb
2026-10-18 03:57:53 +02:00
parent c687553eea
commit 97c909d10b
5 changed files with 20 additions and 20 deletions

View File

@@ -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(