You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(MappingError::Unknown(anyhow!("Detected UNSET entity operation, either a server error or there's a new type of operation and we're running an outdated protobuf")));
195
198
}
196
199
Operation::Create | Operation::Update => {
197
-
let entity_type:&str = &entity_change.entity;
198
-
let entity_id:String = entity_change.id.clone();
200
+
let schema = state.entity_cache.schema.as_ref();
201
+
let entity_type = EntityType::new(entity_change.entity.to_string());
202
+
// Make sure that the `entity_id` gets set to a value
203
+
// that is safe for roundtrips through the database. In
204
+
// particular, if the type of the id is `Bytes`, we have
205
+
// to make sure that the `entity_id` starts with `0x` as
206
+
// that will be what the key for such an entity have
207
+
// when it is read from the database.
208
+
//
209
+
// Needless to say, this is a very ugly hack, and the
0 commit comments