max: {
major: 1,
minor: 0,
- patch: 3,
+ patch: 4,
},
};
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;
}
const _scope = _fileScope('topicSetContent');
const topicSetContentData = {
contentType: null,
+ httpETag: null,
+ httpLastModified: null,
...data,
};
const logData = {
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 });
+ 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');
}