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