@dosgato/api 0.0.72 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -169,7 +169,7 @@ export async function createAssetRoutes(app) {
|
|
|
169
169
|
await resizeLimiter(async () => await assetService.createResizes(asset)).catch(console.error);
|
|
170
170
|
await db.execute(`
|
|
171
171
|
INSERT INTO migratedresizeinfo (originalChecksum, resizedChecksum, mime, size, quality, lossless, width, height)
|
|
172
|
-
SELECT ob.shasum, b.shasum, b.mime, b.bytes, r.quality,
|
|
172
|
+
SELECT ob.shasum, b.shasum, b.mime, b.bytes, r.quality, IFNULL(JSON_EXTRACT(b.meta, '$.lossless') + 0, 0), r.width, r.height
|
|
173
173
|
FROM resizes r
|
|
174
174
|
INNER JOIN binaries b ON b.id=r.binaryId
|
|
175
175
|
INNER JOIN binaries ob ON ob.id=r.originalBinaryId
|