mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +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.Sequelize = Sequelize;
|
||||||
db.accountId = accountId;
|
db.accountId = accountId;
|
||||||
|
|
||||||
|
const transactionLog = new TransactionLog(db);
|
||||||
|
transactionLog.setupSQLHooks(sequelize)
|
||||||
|
|
||||||
return sequelize.authenticate().then(() =>
|
return sequelize.authenticate().then(() =>
|
||||||
sequelize.sync()
|
sequelize.sync()
|
||||||
).thenReturn(db);
|
).thenReturn(db);
|
||||||
|
|
|
@ -60,7 +60,7 @@ class SyncMailboxOperation {
|
||||||
}
|
}
|
||||||
|
|
||||||
_processMessage(attributes, headers, body) {
|
_processMessage(attributes, headers, body) {
|
||||||
const {Message, MessageUID} = this._db;
|
const {Message, MessageUID, accountId} = this._db;
|
||||||
|
|
||||||
const hash = Message.hashForHeaders(headers);
|
const hash = Message.hashForHeaders(headers);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue