ストリーミングの存在しないプロパティ削除によるエラーを修正

This commit is contained in:
KMY 2023-10-01 15:01:37 +09:00
parent bb47ab1287
commit 34cb22ae89

View file

@ -802,7 +802,9 @@ const startServer = async () => {
// reference_texts property is not working if ProcessReferencesWorker is // reference_texts property is not working if ProcessReferencesWorker is
// used on PostStatusService and so on. (Asynchronous processing) // used on PostStatusService and so on. (Asynchronous processing)
const reference_texts = payload.reference_texts || []; const reference_texts = payload.reference_texts || [];
delete payload.reference_texts; if (payload.reference_texts) {
delete payload.reference_texts;
}
// Streaming only needs to apply filtering to some channels and only to // Streaming only needs to apply filtering to some channels and only to
// some events. This is because majority of the filtering happens on the // some events. This is because majority of the filtering happens on the