UNPKG

ravendb

Version:
26 lines 740 B
import { RavenCommand } from "../../Http/RavenCommand.js"; import { throwError } from "../../Exceptions/index.js"; export class KillOperationCommand extends RavenCommand { _id; constructor(id, nodeTag) { super(); if (!id) { throwError("InvalidArgumentException", "Id cannot be null."); } this._id = id; if (nodeTag) { this._selectedNodeTag = nodeTag; } } get isReadRequest() { return false; } createRequest(node) { const uri = `${node.url}/databases/${node.database}/operations/kill?id=${this._id}`; return { uri, method: "POST" }; } } //# sourceMappingURL=KillOperationCommand.js.map