Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public operate(name: string, queries?: OContextable): Operation {
const operation = new Operation();
operation.session = this;
this.setNameAndTarget(operation.proto, name);
if (queries) {
operation.queries(queries);
}
operation.proto.fileName = utils.getCallerFile(this.rootDir);
this.actions.push(operation);
return operation;
}
public operate(name: string, queries?: OContextable): Operation {
const operation = new Operation();
operation.session = this;
utils.setNameAndTarget(this, operation.proto, name);
if (queries) {
operation.queries(queries);
}
operation.proto.fileName = utils.getCallerFile(this.rootDir);
this.actions.push(operation);
return operation;
}