Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6f1c0d7ee9 | |||
| 25bbf2b564 |
@ -16,7 +16,7 @@ url = "2.5.8"
|
|||||||
fluent-uri = "0.3.2"
|
fluent-uri = "0.3.2"
|
||||||
idna = "1.1.0"
|
idna = "1.1.0"
|
||||||
percent-encoding = "2.3.2"
|
percent-encoding = "2.3.2"
|
||||||
uuid = { version = "1.20.0", features = ["v4", "serde"] }
|
uuid = { version = "1.20.0", features = ["v7", "serde"] }
|
||||||
chrono = { version = "0.4.43", features = ["serde"] }
|
chrono = { version = "0.4.43", features = ["serde"] }
|
||||||
json-pointer = "0.3.4"
|
json-pointer = "0.3.4"
|
||||||
indexmap = { version = "2.13.0", features = ["serde"] }
|
indexmap = { version = "2.13.0", features = ["serde"] }
|
||||||
|
|||||||
@ -588,7 +588,7 @@ impl Merger {
|
|||||||
.and_then(|v| v.as_str())
|
.and_then(|v| v.as_str())
|
||||||
.unwrap_or("");
|
.unwrap_or("");
|
||||||
let id_val = if entity_id.is_empty() {
|
let id_val = if entity_id.is_empty() {
|
||||||
Value::String(uuid::Uuid::new_v4().to_string())
|
Value::String(uuid::Uuid::now_v7().to_string())
|
||||||
} else {
|
} else {
|
||||||
Value::String(entity_id.to_string())
|
Value::String(entity_id.to_string())
|
||||||
};
|
};
|
||||||
@ -980,7 +980,7 @@ impl Merger {
|
|||||||
Self::quote_literal(&old_val_obj),
|
Self::quote_literal(&old_val_obj),
|
||||||
Self::quote_literal(&new_val_obj),
|
Self::quote_literal(&new_val_obj),
|
||||||
Self::quote_literal(id_str),
|
Self::quote_literal(id_str),
|
||||||
Self::quote_literal(&Value::String(uuid::Uuid::new_v4().to_string())),
|
Self::quote_literal(&Value::String(uuid::Uuid::now_v7().to_string())),
|
||||||
Self::quote_literal(&Value::String(change_kind.to_string())),
|
Self::quote_literal(&Value::String(change_kind.to_string())),
|
||||||
Self::quote_literal(&Value::String(timestamp.to_string())),
|
Self::quote_literal(&Value::String(timestamp.to_string())),
|
||||||
Self::quote_literal(&Value::String(user_id.to_string()))
|
Self::quote_literal(&Value::String(user_id.to_string()))
|
||||||
|
|||||||
Reference in New Issue
Block a user