mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 11:36:08 +08:00
Fix error & and turn on transaction logging
This commit is contained in:
parent
8ed94442c4
commit
cebce1081f
2 changed files with 4 additions and 1 deletions
|
@ -47,6 +47,9 @@ class DatabaseConnectionFactory {
|
|||
db.Sequelize = Sequelize;
|
||||
db.accountId = accountId;
|
||||
|
||||
const transactionLog = new TransactionLog(db);
|
||||
transactionLog.setupSQLHooks(sequelize)
|
||||
|
||||
return sequelize.authenticate().then(() =>
|
||||
sequelize.sync()
|
||||
).thenReturn(db);
|
||||
|
|
|
@ -60,7 +60,7 @@ class SyncMailboxOperation {
|
|||
}
|
||||
|
||||
_processMessage(attributes, headers, body) {
|
||||
const {Message, MessageUID} = this._db;
|
||||
const {Message, MessageUID, accountId} = this._db;
|
||||
|
||||
const hash = Message.hashForHeaders(headers);
|
||||
|
||||
|
|
Loading…
Reference in a new issue