@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, CAST(JSON_EXTRACT(b.meta, '$.lossless') AS UNSIGNED INT), r.width, r.height
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/api",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
4
4
  "description": "A CMS designed for large institutions with thousands of editors and hundreds of subsites.",
5
5
  "type": "module",
6
6
  "exports": {