swallow exception while saving seen messages

pull/1804/head
Audric Ackermann 4 years ago
parent 20f5c3b822
commit 7d4ae4ca6b
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1915,20 +1915,24 @@ function updateLastHash(data) {
function saveSeenMessageHash(data) {
const { expiresAt, hash } = data;
globalInstance
.prepare(
`INSERT INTO seenMessages (
try {
globalInstance
.prepare(
`INSERT INTO seenMessages (
expiresAt,
hash
) values (
$expiresAt,
$hash
);`
)
.run({
expiresAt,
hash,
});
)
.run({
expiresAt,
hash,
});
} catch (e) {
console.warn('saveSeenMessageHash failed:', e);
}
}
function cleanLastHashes() {

Loading…
Cancel
Save