X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Fdb%2Fpostgres%2Findex.js;h=d950d4a8488924ea2999a9c03b03d93f38ab4591;hp=a90e0cbb4277c02ae2a35d16ef68d9e3434ca6ed;hb=f793d88a96b9495172f5dd0c342f2036c902902d;hpb=f97144a77f0ee18efa4b5f0290d030baa2757044 diff --git a/src/db/postgres/index.js b/src/db/postgres/index.js index a90e0cb..d950d4a 100644 --- a/src/db/postgres/index.js +++ b/src/db/postgres/index.js @@ -30,7 +30,7 @@ const schemaVersionsSupported = { max: { major: 1, minor: 0, - patch: 2, + patch: 3, }, }; @@ -904,6 +904,10 @@ class DatabasePostgres extends Database { if (result.rowCount != 1) { throw new DBErrors.UnexpectedResult('did not set topic content'); } + result = await dbCtx.result(this.statement.topicSetContentHistory, { topicId: data.topicId, contentHash: data.contentHash, contentSize: data.content.length }); + if (result.rowCount != 1) { + throw new DBErrors.UnexpectedResult('did not set topic content history'); + } this.logger.debug(_scope, 'success', { ...logData }); return this._engineInfo(result); } catch (e) {