Ghost/ghost/model-to-domain-event-interceptor
Naz 1d7bb44a94 Fixed post.deleted event mapping
https://github.com/TryGhost/Arch/issues/90

- When a post.deleted event is emitted the original 'data' object does not contain an 'id' property. The logic in collections service assumes the id would be present to update the collections efficiently.
2023-09-14 14:31:23 +08:00
..
src Fixed post.deleted event mapping 2023-09-14 14:31:23 +08:00
test Fixed post.deleted event mapping 2023-09-14 14:31:23 +08:00
.eslintrc.js Enabled no-explicit-any for majority of packages 2023-07-27 16:49:08 +02:00
package.json Updated linting and testing packages 2023-09-01 15:51:17 +02:00
README.md Extracted model event interceptor to separate package 2023-07-03 18:47:27 +08:00
tsconfig.json Deduplicated tsconfig.json files 2023-07-12 09:34:00 +02:00

Model To Domain Event Interceptor

Model event interceptor that maps legacy model events to Domain event

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests