0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Set importer context for members importer

no issue
needs 82eb861955

Set the context to `importer` for any members importer actions which will determine the correct source of origin in the members events table
This commit is contained in:
Aileen Nowak 2022-04-06 15:20:50 -04:00 committed by Daniel Lockyer
parent d5e7893212
commit 7dead9be5c

View file

@ -53,7 +53,10 @@ const membersImporter = new MembersCSVImporter({
isSet: labsService.isSet.bind(labsService),
addJob: jobsService.addJob.bind(jobsService),
knex: db.knex,
urlFor: urlUtils.urlFor.bind(urlUtils)
urlFor: urlUtils.urlFor.bind(urlUtils),
context: {
importer: true
}
});
const processImport = async (options) => {