UNPKG

499 BJavaScriptView Raw
1"use strict";
2
3const apiRunnerNode = require(`./api-runner-node`);
4
5const {
6 store
7} = require(`../redux`);
8
9module.exports = async ({
10 refresh = false,
11 parentSpan
12}) => {
13 if (refresh) {
14 store.dispatch({
15 type: `CLEAR_SCHEMA_CUSTOMIZATION`
16 });
17 }
18
19 await apiRunnerNode(`createSchemaCustomization`, {
20 parentSpan,
21 traceId: !refresh ? `initial-createSchemaCustomization` : `refresh-createSchemaCustomization`
22 });
23};
24//# sourceMappingURL=create-schema-customization.js.map
\No newline at end of file