mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Merge #2076
2076: fix(dump): Fix the import of dump from the v24 and before r=ManyTheFish a=irevoire Same as https://github.com/meilisearch/MeiliSearch/pull/2073 but on main this time Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
commit
78a381a30b
@ -29,6 +29,10 @@ impl AuthController {
|
|||||||
|
|
||||||
let keys_file_path = src.as_ref().join(KEYS_PATH);
|
let keys_file_path = src.as_ref().join(KEYS_PATH);
|
||||||
|
|
||||||
|
if !keys_file_path.exists() {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
let mut reader = BufReader::new(File::open(&keys_file_path)?).lines();
|
let mut reader = BufReader::new(File::open(&keys_file_path)?).lines();
|
||||||
while let Some(key) = reader.next().transpose()? {
|
while let Some(key) = reader.next().transpose()? {
|
||||||
let key = serde_json::from_str(&key)?;
|
let key = serde_json::from_str(&key)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user