mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 20:44:30 +08:00
10 lines
279 B
JavaScript
10 lines
279 B
JavaScript
/* eslint func-names:0 */
|
|
|
|
const {DatabaseConnector} = require(`nylas-core`);
|
|
|
|
module.exports = (server) => {
|
|
server.decorate('request', 'getAccountDatabase', function () {
|
|
const account = this.auth.credentials;
|
|
return DatabaseConnector.forAccount(account.id);
|
|
});
|
|
}
|