Ghost/ghost/members-importer
Aileen Nowak dd702f6ef8 Allow setting context for members importer and use correct source
no issue

When importing members, the members-importer isn't aware of the context and therefore falls back to use `member` as a source in members event table. This makes it impossible to determine imported members from others.
- Added an `context` property to the options in the members-importer constructor
- Checked for `importer` context when creating member events and assigned the source `admin` to it
2022-04-27 15:27:19 -04:00
..
lib Allow setting context for members importer and use correct source 2022-04-27 15:27:19 -04:00
test Allow setting context for members importer and use correct source 2022-04-27 15:27:19 -04:00
.eslintrc.js Initialized members-importer package 2021-07-22 01:53:21 +12:00
index.js Fixed default package export 2021-07-22 01:53:21 +12:00
LICENSE 2022 2022-01-06 10:09:25 +00:00
package.json Published new versions 2022-04-27 19:08:40 +02:00
README.md 2022 2022-01-06 10:09:25 +00:00

Members Importer

Install

npm install @tryghost/members-importer --save

or

yarn add @tryghost/members-importer

Usage

Develop

This is a mono repository, managed with lerna.

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.

Run

  • yarn dev

Test

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

Copyright & License

Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.