UNPKG

openhim-core

Version:

The OpenHIM core application that provides logging and routing of http requests

34 lines (26 loc) 797 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoRetryModel = exports.AutoRetryModelAPI = void 0; var _mongoose = require("mongoose"); var _config = require("../config"); const AutoRetrySchema = new _mongoose.Schema({ transactionID: { type: _mongoose.Schema.Types.ObjectId, required: true }, channelID: { type: _mongoose.Schema.Types.ObjectId, required: true }, requestTimestamp: { type: Date, required: true } }); const AutoRetryModelAPI = _config.connectionAPI.model('AutoRetry', AutoRetrySchema); exports.AutoRetryModelAPI = AutoRetryModelAPI; const AutoRetryModel = _config.connectionDefault.model('AutoRetry', AutoRetrySchema); exports.AutoRetryModel = AutoRetryModel; //# sourceMappingURL=autoRetry.js.map