@webiny/api-headless-cms-ddb-es
Version:
DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.
13 lines (11 loc) • 466 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.shouldIgnoreEsResponseError = void 0;
const IGNORED_ES_SEARCH_EXCEPTIONS = ["index_not_found_exception", "search_phase_execution_exception"];
const shouldIgnoreEsResponseError = error => {
return IGNORED_ES_SEARCH_EXCEPTIONS.includes(error.message);
};
exports.shouldIgnoreEsResponseError = shouldIgnoreEsResponseError;
//# sourceMappingURL=shouldIgnoreEsResponseError.js.map