X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Fdb%2Fsqlite%2Findex.js;h=31471bafb850c9d761ffc19931968658eb093258;hp=cc4ea90af056db2c99f747f2705e25829801749a;hb=18eee8e467173aee380bd0727d7065469e706727;hpb=b804c869f818cc19da914ae7c1a235b9ba90c246 diff --git a/src/db/sqlite/index.js b/src/db/sqlite/index.js index cc4ea90..31471ba 100644 --- a/src/db/sqlite/index.js +++ b/src/db/sqlite/index.js @@ -828,7 +828,7 @@ class DatabaseSQLite extends Database { const events = this.statement.topicPublishHistory.all({ 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; }