Skip to content

Commit

Permalink
webhookOnTranscriptReceivedCall validation
Browse files Browse the repository at this point in the history
  • Loading branch information
josancamon19 committed Aug 7, 2024
1 parent dded36a commit 272b663
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/lib/backend/http/webhooks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Future<String> webhookOnMemoryCreatedCall(ServerMemory? memory, {bool returnRawB
}

Future<String> webhookOnTranscriptReceivedCall(List<TranscriptSegment> segments, String sessionId) async {
// was called twice?
if (segments.isEmpty || SharedPreferencesUtil().webhookOnTranscriptReceived.isEmpty) return '';
debugPrint('webhookOnTranscriptReceivedCall: $segments');
return triggerTranscriptSegmentsRequest(SharedPreferencesUtil().webhookOnTranscriptReceived, sessionId, segments);
}
Expand Down

0 comments on commit 272b663

Please sign in to comment.