chore: return database rows on open

This commit is contained in:
ascarbek 2023-04-04 17:23:15 +06:00
parent ed977868cf
commit 034d4d9bf4

View File

@ -65,7 +65,7 @@ export class DatabaseController {
this.databaseViewCache.initializeWithRows(database.rows);
this._callback?.onViewChanged?.(database);
return loadGroupResult;
return Ok(database.rows);
} else {
return Err(openDatabaseResult.val);
}