From 68d6e57870dd5ea87a03d13adcfcc72786d8348a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Jun 2022 09:03:18 +0200 Subject: Fix transaction when processing local viewer --- server/lib/activitypub/local-video-viewer.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/lib/activitypub/local-video-viewer.ts b/server/lib/activitypub/local-video-viewer.ts index 738083adc..bdd746791 100644 --- a/server/lib/activitypub/local-video-viewer.ts +++ b/server/lib/activitypub/local-video-viewer.ts @@ -23,7 +23,7 @@ async function createOrUpdateLocalVideoViewer (watchAction: WatchActionObject, v : null, videoId: video.id - }) + }, { transaction: t }) await LocalVideoViewerWatchSectionModel.bulkCreateSections({ localVideoViewerId: localVideoViewer.id, @@ -31,7 +31,9 @@ async function createOrUpdateLocalVideoViewer (watchAction: WatchActionObject, v watchSections: watchAction.watchSections.map(s => ({ start: s.startTimestamp, end: s.endTimestamp - })) + })), + + transaction: t }) } -- cgit v1.2.3