Fix views events with lives

This commit is contained in:
Chocobozzz
2023-12-14 11:07:55 +01:00
parent d5fd8227b4
commit 63c4a02ce0
2 changed files with 17 additions and 2 deletions

View File

@@ -50,8 +50,8 @@ export class LocalVideoViewerWatchSectionModel extends Model<Partial<AttributesO
for (const section of watchSections) {
const model = await this.create({
watchStart: section.start,
watchEnd: section.end,
watchStart: section.start || 0,
watchEnd: section.end || 0,
localVideoViewerId
}, { transaction })