@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.
@@ -390,7 +390,8 @@ class EdgeOperation {
390
390
  // maybe when actions exist?
391
391
  fields["time"] = new Date().toISOString();
392
392
  }
393
- const onConflictFields = ["data"];
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",