16 lines
506 B
JavaScript
Raw Normal View History

2021-07-13 18:46:36 +02:00
'use strict';
2021-09-24 09:04:44 +02:00
const { getService } = require('./utils');
const { ALLOWED_WEBHOOK_EVENTS } = require('./constants');
2021-07-13 18:46:36 +02:00
2021-09-24 09:04:44 +02:00
module.exports = async () => {
Object.entries(ALLOWED_WEBHOOK_EVENTS).forEach(([key, value]) => {
strapi.webhookStore.addAllowedEvent(key, value);
});
2021-09-24 09:04:44 +02:00
await getService('components').syncConfigurations();
await getService('content-types').syncConfigurations();
await getService('permission').registerPermissions();
getService('field-sizes').setCustomFieldInputSizes();
2021-09-24 09:04:44 +02:00
};