X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Fdb%2Fsqlite%2Findex.js;h=b8826a4f15ee424113e72fd790b41b8212bf3cf8;hp=3fae300eec6b1d02a746f32aae1b3d978bf35fda;hb=f793d88a96b9495172f5dd0c342f2036c902902d;hpb=f97144a77f0ee18efa4b5f0290d030baa2757044 diff --git a/src/db/sqlite/index.js b/src/db/sqlite/index.js index 3fae300..b8826a4 100644 --- a/src/db/sqlite/index.js +++ b/src/db/sqlite/index.js @@ -20,7 +20,7 @@ const schemaVersionsSupported = { max: { major: 1, minor: 0, - patch: 2, + patch: 3, }, }; @@ -869,6 +869,10 @@ class DatabaseSQLite extends Database { if (result.changes != 1) { throw new DBErrors.UnexpectedResult('did not set topic content'); } + result = this.statement.topicSetContentHistory.run({ topicId: data.topicId, contentHash: data.contentHash, contentSize: data.content.length }); + if (result.changes != 1) { + throw new DBErrors.UnexpectedResult('did not set topic content history'); + } return this._engineInfo(result); } catch (e) { this.logger.error(_scope, 'failed', { error: e, ...logData });