fix numeric IDs not working with persistence, use u32 instead of u64, switch to numeric by default
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ build = "build.rs"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
yopa = { path = "../yopa", features = ["uuid-ids"] }
|
||||
yopa = { path = "../yopa" }
|
||||
serde = "1"
|
||||
serde_json = "1"
|
||||
heck = "0.3.2"
|
||||
|
||||
@@ -23,8 +23,8 @@ export function objCopy(object) {
|
||||
}
|
||||
|
||||
export function castId(id) {
|
||||
return id.toString();
|
||||
//return +id;
|
||||
//return id.toString();
|
||||
return +id;
|
||||
}
|
||||
|
||||
// like _.isEmpty, but less stupid
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user