Skip to content

Commit acd966b

Browse files
andrsvsrgmacbookpro
andauthored
BKNDLSS-33989 (#248)
[SUPPORT] Exception when use upsertOperation resultt in setRelationOperation Co-authored-by: macbookpro <sergey.androsov@backendlessmail.com>
1 parent dc1e8a1 commit acd966b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/unit-of-work/op-result.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ export class OpResult {
4747
}
4848

4949
isObjectRef() {
50-
return this.operationType === OperationType.CREATE || this.operationType === OperationType.UPDATE
50+
return (
51+
this.operationType === OperationType.CREATE ||
52+
this.operationType === OperationType.UPDATE ||
53+
this.operationType === OperationType.UPSERT
54+
)
5155
}
5256

5357
setOpResultId(opResultId) {

0 commit comments

Comments
 (0)