mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Exported MembersCSVImporter from Members service
no-issue This will allow the controller to be updated to use the new importer
This commit is contained in:
parent
ff7773d1cf
commit
cfad396652
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
const MembersSSR = require('@tryghost/members-ssr');
|
const MembersSSR = require('@tryghost/members-ssr');
|
||||||
|
|
||||||
const MembersConfigProvider = require('./config');
|
const MembersConfigProvider = require('./config');
|
||||||
|
const MembersCSVImporter = require('./importer');
|
||||||
const createMembersApiInstance = require('./api');
|
const createMembersApiInstance = require('./api');
|
||||||
const createMembersSettingsInstance = require('./settings');
|
const createMembersSettingsInstance = require('./settings');
|
||||||
const {events} = require('../../lib/common');
|
const {events} = require('../../lib/common');
|
||||||
|
@ -90,7 +91,9 @@ const membersService = {
|
||||||
getMembersApi: () => membersService.api
|
getMembersApi: () => membersService.api
|
||||||
}),
|
}),
|
||||||
|
|
||||||
stripeConnect: require('./stripe-connect')
|
stripeConnect: require('./stripe-connect'),
|
||||||
|
|
||||||
|
importer: new MembersCSVImporter({storagePath: config.getContentPath('data')}, settingsCache, () => membersApi)
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = membersService;
|
module.exports = membersService;
|
||||||
|
|
Loading…
Reference in a new issue