X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Fdb%2Fpostgres%2Findex.js;h=fc4ec8daa1b229ec353ebfeff8cf5ac3d917a6d8;hp=3e97336992999adaee4a077c1f7ef9ddc7719a87;hb=18eee8e467173aee380bd0727d7065469e706727;hpb=b804c869f818cc19da914ae7c1a235b9ba90c246 diff --git a/src/db/postgres/index.js b/src/db/postgres/index.js index 3e97336..fc4ec8d 100644 --- a/src/db/postgres/index.js +++ b/src/db/postgres/index.js @@ -862,7 +862,7 @@ class DatabasePostgres extends Database { const events = await dbCtx.manyOrNone(this.statement.topicPublishHistory, { topicIds: [topicId], daysAgo: days }); const history = Array.from({ length: days }, () => 0); - events.forEach(({ daysAgo, contentUpdates }) => history[daysAgo] = contentUpdates); + events.forEach(({ daysAgo, contentUpdates }) => history[daysAgo] = Number(contentUpdates)); return history; }