diff --git a/module/apps/Image.mjs b/module/apps/Image.mjs index 1a5c38f..2e9f4da 100644 --- a/module/apps/Image.mjs +++ b/module/apps/Image.mjs @@ -114,6 +114,8 @@ export class ImageApp extends path: this.#file ? path : ``, }; await uploadJson(`db`, `images.json`, images); + + Hooks.callAll(`${__ID__}.imageUploaded`, hash, images[hash]); } else { const images = await getFile(this.constructor.dbPath); @@ -123,6 +125,8 @@ export class ImageApp extends artists: data.artists, }); await uploadJson(`db`, `images.json`, images); + + Hooks.callAll(`${__ID__}.imageUpdated`, this._docID, images[this._docID]); }; }; // #endregion Lifecycle