pull/267/head
Beaudan 6 years ago
parent 620380d2d9
commit faf1b4b66b

@ -1753,7 +1753,6 @@ async function getLastHashBySnode(snode) {
$snode: snode,
});
if (!row) {
return null;
}

@ -21,4 +21,4 @@ class JobQueue {
module.exports = {
JobQueue,
}
};

@ -210,7 +210,11 @@ class LokiMessageAPI {
if (Array.isArray(result.messages) && result.messages.length) {
const lastMessage = _.last(result.messages);
lokiSnodeAPI.updateLastHash(nodeUrl, lastMessage.hash, lastMessage.expiration);
lokiSnodeAPI.updateLastHash(
nodeUrl,
lastMessage.hash,
lastMessage.expiration
);
const filteredMessages = await this.jobQueue.add(() =>
filterIncomingMessages(result.messages)
);

Loading…
Cancel
Save