mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-27 07:51:08 -04:00
Fix getting data from an empty DB in local
This commit is contained in:
@ -6,7 +6,7 @@ class LocalAdapter {
|
||||
const parts = uri.split('/');
|
||||
|
||||
if (parts.length === 1) {
|
||||
return storage.getItem(parts[0]) || [];
|
||||
return (await storage.getItem(parts[0])) || [];
|
||||
}
|
||||
|
||||
if (parts.length === 2) {
|
||||
|
||||
Reference in New Issue
Block a user