mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-18 22:21:50 +03:00
kv & sqlite: db already exists errors
This commit is contained in:
parent
77f658e03f
commit
3b48b0cb63
@ -393,6 +393,10 @@ async fn check_caps(
|
||||
});
|
||||
}
|
||||
|
||||
if open_kvs.contains_key(&(request.package_id.clone(), request.db.clone())) {
|
||||
return Err(KvError::DbAlreadyExists);
|
||||
}
|
||||
|
||||
add_capability(
|
||||
"read",
|
||||
&request.db.to_string(),
|
||||
|
@ -368,6 +368,10 @@ async fn check_caps(
|
||||
});
|
||||
}
|
||||
|
||||
if open_dbs.contains_key(&(request.package_id.clone(), request.db.clone())) {
|
||||
return Err(SqliteError::DbAlreadyExists);
|
||||
}
|
||||
|
||||
add_capability(
|
||||
"read",
|
||||
&request.db.to_string(),
|
||||
|
Loading…
Reference in New Issue
Block a user