Skip to content

Commit 6d19e7a

Browse files
authored
kv: fix scope_level default value (#556)
1 parent dba0e9b commit 6d19e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spi/spi-kv/src/serv/pg/kv_pg_item_serv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub async fn add_or_modify_item(add_or_modify_req: &KvItemAddOrModifyReq, _funs:
2020
Value::from(add_or_modify_req.info.as_ref().unwrap_or(&"".to_string()).as_str()),
2121
Value::from(ctx.owner.clone()),
2222
Value::from(ctx.own_paths.clone()),
23-
Value::from(add_or_modify_req.scope_level.unwrap_or(-1)),
23+
Value::from(add_or_modify_req.scope_level.unwrap_or(0)),
2424
];
2525
let mut update_opt_fragments: Vec<&str> = Vec::new();
2626
update_opt_fragments.push("v = $2");

0 commit comments

Comments
 (0)