@snowtop/ent 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action/operations.js +2 -1
- package/package.json +1 -1
package/action/operations.js
CHANGED
|
@@ -390,7 +390,8 @@ class EdgeOperation {
|
|
|
390
390
|
// maybe when actions exist?
|
|
391
391
|
fields["time"] = new Date().toISOString();
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
// update time if we're trying to insert a row with the same id1, edge_type, id2
|
|
394
|
+
const onConflictFields = ["data", "time"];
|
|
394
395
|
const extraEdgeFields = (0, global_schema_1.__getGlobalSchema)()?.extraEdgeFields;
|
|
395
396
|
if (extraEdgeFields) {
|
|
396
397
|
for (const name in extraEdgeFields) {
|