mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
fix(dump): Fix the import of dump from the v24 and before
This commit is contained in:
parent
010dcc3e80
commit
343bce6a29
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,10 @@ impl AuthController {
|
|||
|
||||
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();
|
||||
while let Some(key) = reader.next().transpose()? {
|
||||
let key = serde_json::from_str(&key)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue