mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Fixed this
context for methods passed into importer
refs https://github.com/TryGhost/Team/issues/916 - Without `.bind`, `this` context was lost when used inside of the CSVImporter calss
This commit is contained in:
parent
25dcfde368
commit
170617feb3
@ -132,10 +132,10 @@ const membersService = {
|
||||
getTimezone: () => settingsCache.get('timezone'),
|
||||
getMembersApi: () => membersApi,
|
||||
sendEmail: ghostMailer.send.bind(ghostMailer),
|
||||
isSet: labsService.isSet,
|
||||
addJob: jobsService.addJob,
|
||||
isSet: labsService.isSet.bind(labsService),
|
||||
addJob: jobsService.addJob.bind(jobsService),
|
||||
knex: db.knex,
|
||||
urlFor: urlUtils.urlFor
|
||||
urlFor: urlUtils.urlFor.bind(urlUtils)
|
||||
}),
|
||||
|
||||
stats: new MembersStats({
|
||||
|
Loading…
Reference in New Issue
Block a user