UNPKG

ravendb

Version:
26 lines 776 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KillServerOperationCommand = void 0; const RavenCommand_js_1 = require("../../Http/RavenCommand.js"); class KillServerOperationCommand extends RavenCommand_js_1.RavenCommand { _id; constructor(id, nodeTag) { super(); this._id = id; if (nodeTag) { this._selectedNodeTag = nodeTag; } } get isReadRequest() { return false; } createRequest(node) { const uri = `${node.url}/admin/operations/kill?id=${this._id}`; return { uri, method: "POST" }; } } exports.KillServerOperationCommand = KillServerOperationCommand; //# sourceMappingURL=KillServerOperationCommand.js.map