mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 07:26:42 +02:00
🐛 fix(todo): await async importFromPngBytes call
This commit is contained in:
parent
a336cc2381
commit
216a868127
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ class SpiralStore {
|
|||
const bytes = new Uint8Array(buffer);
|
||||
|
||||
// Parse PNG and extract image
|
||||
const image = importFromPngBytes(bytes);
|
||||
const image = await importFromPngBytes(bytes);
|
||||
|
||||
// Reconstruct database from image
|
||||
this.db = SpiralDB.fromImage<TodoData>(image, createTodoSchema());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue