@ossy/media-tasks 1.25.0 → 1.25.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/media-tasks",
3
- "version": "1.25.0",
3
+ "version": "1.25.2",
4
4
  "description": "Changestream-triggered media processing tasks (image resize, AI descriptors)",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -28,5 +28,5 @@
28
28
  ],
29
29
  "author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
30
30
  "license": "MIT",
31
- "gitHead": "9b116b6a4fadd570c1e6c0c6d9a4867448f7410c"
31
+ "gitHead": "6e44e53bf3c9b5c14c5bc2b0a02e60a590389b55"
32
32
  }
@@ -18,7 +18,7 @@ export const metadata = {
18
18
  ],
19
19
  }
20
20
 
21
- export default async function ({ event, sdk }) {
21
+ export async function run ({ event, sdk }) {
22
22
  const { default: sharp } = await import('sharp')
23
23
  const resourceId = event.aggregateId
24
24
 
@@ -16,7 +16,7 @@ export const metadata = {
16
16
  ],
17
17
  }
18
18
 
19
- export default async function ({ event, sdk }) {
19
+ export async function run ({ event, sdk }) {
20
20
  const resourceId = event.aggregateId
21
21
 
22
22
  const resource = await sdk.resources.get({ id: resourceId })