Bumped scheduler to use v4 API

refs https://github.com/TryGhost/Team/issues/513

- The bump does not effect scheduled post as URL with authentication token is generated during runtime for DefaultScheduler.
- This needs to be checked for SchedulerAdapter implementations which use persistant storage
This commit is contained in:
Naz 2021-03-03 18:45:41 +13:00
parent 9fab028621
commit 476d4389c6

View File

@ -170,7 +170,7 @@ async function initServices({config}) {
scheduling.init({
// NOTE: When changing API version need to consider how to migrate custom scheduling adapters
// that rely on URL to lookup persisted scheduled records (jobs, etc.). Ref: https://github.com/TryGhost/Ghost/pull/10726#issuecomment-489557162
apiUrl: urlUtils.urlFor('api', {version: 'v3', versionType: 'admin'}, true)
apiUrl: urlUtils.urlFor('api', {version: 'v4', versionType: 'admin'}, true)
})
]);
debug('End: Services');