Skip to content

Commit

Permalink
ストリーミングの存在しないプロパティ削除によるエラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Oct 1, 2023
1 parent bb47ab1 commit 34cb22a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion streaming/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,9 @@ const startServer = async () => {
// reference_texts property is not working if ProcessReferencesWorker is
// used on PostStatusService and so on. (Asynchronous processing)
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
// some events. This is because majority of the filtering happens on the
Expand Down

0 comments on commit 34cb22a

Please sign in to comment.