From b78287cb11fc3da25c7cad4fa6e4e62788705e4b Mon Sep 17 00:00:00 2001 From: HitomaruKonpaku Date: Tue, 24 Sep 2024 19:21:25 +0700 Subject: [PATCH] Fix timestamp error --- .../src/module/youtube/base/base-action-handler.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/back-end/src/module/youtube/base/base-action-handler.ts b/apps/back-end/src/module/youtube/base/base-action-handler.ts index ff86730..7349384 100644 --- a/apps/back-end/src/module/youtube/base/base-action-handler.ts +++ b/apps/back-end/src/module/youtube/base/base-action-handler.ts @@ -93,7 +93,13 @@ export abstract class BaseActionHandler this.handleTrack(track))) + await Promise.all(tracks.map(async (track) => { + try { + await this.handleTrack(track) + } catch (error) { + this.logger.error(`handleTrack: ${error.message} | ${JSON.stringify({ action: this.action, track })}`) + } + })) } protected hasMessage(): boolean { @@ -108,17 +114,20 @@ export abstract class BaseActionHandler maxAge, action })}`) if (age > maxAge) { // return } } + if (this.data.video.isMembersOnly && !track.allowMemberChat) { return } + if (!this.data.video.isMembersOnly && !track.allowPublicChat) { return }