2021-07-13 18:46:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
2021-09-24 09:04:44 +02:00
|
|
|
const { getService } = require('./utils');
|
2021-07-13 18:46:36 +02:00
|
|
|
|
2021-09-24 09:04:44 +02:00
|
|
|
module.exports = async () => {
|
|
|
|
|
await getService('components').syncConfigurations();
|
|
|
|
|
await getService('content-types').syncConfigurations();
|
|
|
|
|
await getService('permission').registerPermissions();
|
2023-01-20 09:41:26 +01:00
|
|
|
|
|
|
|
|
// TODO: V5, remove this warning
|
|
|
|
|
if (strapi.config.get('server.webhooks.populateRelations', true)) {
|
|
|
|
|
process.emitWarning(
|
|
|
|
|
'[deprecated] Relations population in webhooks is enabled. This is not recommended for production and will degrade performance. ' +
|
|
|
|
|
'Please set `server.webhooks.populateRelations` to `false` in your `config/server.js` file.'
|
|
|
|
|
);
|
|
|
|
|
}
|
2021-09-24 09:04:44 +02:00
|
|
|
};
|