We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da814d commit 798ac8dCopy full SHA for 798ac8d
1 file changed
OpenFlow/src/DatabaseConnection.ts
@@ -2048,6 +2048,9 @@ export class DatabaseConnection extends events.EventEmitter {
2048
const uqres = await this.UpdateOne(uq, span);
2049
q.opresult = uqres.opresult;
2050
q.result = uqres.result;
2051
+ if (NoderedUtil.IsNullUndefinded(uqres.result) && !NoderedUtil.IsNullUndefinded(uqres.item)) {
2052
+ q.result = uqres.item;
2053
+ }
2054
} else {
2055
if (Config.log_updates) Logger.instanse.debug("[" + user.username + "][" + q.collectionname + "] InsertOrUpdateOne, Inserting as new in database");
2056
if (q.collectionname === "openrpa_instances" && q.item._type === "workflowinstance") {
0 commit comments