forked from cory/tildefriends
db: Fix the db app, and show a message instead of an ugly error when you're not signed in.
This commit is contained in:
@ -716,12 +716,12 @@ async function getProcessBlob(blobId, key, options) {
|
||||
Object.keys(db).map((x) => [x, db[x].bind(db)])
|
||||
);
|
||||
};
|
||||
imports.databases = function () {
|
||||
imports.databases = async function () {
|
||||
return [].concat(
|
||||
databases.list(
|
||||
await databases.list(
|
||||
':shared:' + process.credentials.session.name + ':%'
|
||||
),
|
||||
databases.list(process.credentials.session.name + ':%')
|
||||
await databases.list(process.credentials.session.name + ':%')
|
||||
);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user