orma
Advanced tools
Comparing version 1.0.260 to 1.0.261
@@ -61,2 +61,6 @@ "use strict"; | ||
); | ||
// this can happen if the operation is none and no identifying fields are given | ||
if (!identifying_keys) { | ||
return {}; | ||
} | ||
const possible_identifying_keys = (0, identifying_fields_macro_1.get_possible_identifying_keys)(orma_schema, entity); | ||
@@ -63,0 +67,0 @@ const identifying_key_index = possible_identifying_keys.findIndex(keys => (0, helpers_1.array_set_equals)(keys, identifying_keys)); |
@@ -46,3 +46,4 @@ "use strict"; | ||
] | ||
} | ||
}, | ||
{ $operation: 'none' } | ||
] | ||
@@ -49,0 +50,0 @@ }; |
{ | ||
"name": "orma", | ||
"version": "1.0.260", | ||
"version": "1.0.261", | ||
"description": "A declarative relational syncronous orm", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -156,2 +156,8 @@ import { | ||
) | ||
// this can happen if the operation is none and no identifying fields are given | ||
if (!identifying_keys) { | ||
return {} | ||
} | ||
const possible_identifying_keys = get_possible_identifying_keys( | ||
@@ -158,0 +164,0 @@ orma_schema, |
@@ -51,3 +51,4 @@ import { describe, test } from 'mocha' | ||
] | ||
} | ||
}, | ||
{ $operation: 'none' } | ||
] | ||
@@ -54,0 +55,0 @@ } as const satisfies GlobalTestMutation |
1693566
41270