UNPKG

@cumulus/message

Version:

Utilities for building and parsing Cumulus messages

14 lines 553 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMessageAsyncOperationId = void 0; /** * Get the async operation ID from a workflow message, if any. * * @param {Message.CumulusMessage} message - A workflow message object * @returns {undefined|string} The async operation ID * * @alias module:AsyncOperations */ const getMessageAsyncOperationId = (message) => message.cumulus_meta?.asyncOperationId; exports.getMessageAsyncOperationId = getMessageAsyncOperationId; //# sourceMappingURL=AsyncOperations.js.map