Ghost/ghost/collections
Kevin Ansfield 1c68bd6779
Fixed transaction errors using PostsService inside of Post model's onSaving hook (#18148)
no issue

`PostsService` and `CollectionsService` were missing some passthroughs and had differing naming for a transaction instance on the `options` object which meant SQLite would hang if the Lexical renderer called out to `PostsService.browsePosts`

- added passthrough of `transacting` to the Lexical renderer ready for implementation of the collection-fetching function
- added rename of `options.transacting` to `options.transaction` and passthrough from `PostsService` to `CollectionsService` (passthrough from collections repository to bookshelf and required `transaction->transacting` was already in place)
2023-09-14 17:22:10 +00:00
..
src Fixed transaction errors using PostsService inside of Post model's onSaving hook (#18148) 2023-09-14 17:22:10 +00:00
test Optimized PostEditedEvent processing in collections 2023-09-08 13:46:44 +08:00
.eslintrc.js Enabled no-explicit-any for majority of packages 2023-07-27 16:49:08 +02:00
package.json Optimized PostEditedEvent processing in collections 2023-09-08 13:46:44 +08:00
README.md Added a collections package with CRUD logic 2023-05-16 12:21:31 +07:00
tsconfig.json Deduplicated tsconfig.json files 2023-07-12 09:34:00 +02:00

Collections

Manages everything to do with Collections

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