Skip to content

Commit 13e2a69

Browse files
committed
Update AiSpeechAssistantProcessJobService.cs
1 parent 587716e commit 13e2a69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SmartTalk.Core/Services/AiSpeechAssistant/AiSpeechAssistantProcessJobService.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public async Task RecordAiSpeechAssistantCallAsync(AiSpeechAssistantStreamContex
6060
Tips = context.ConversationTranscription.FirstOrDefault().Item2,
6161
TranscriptionText = FormattedConversation(context.ConversationTranscription),
6262
Language = TranscriptionLanguage.Chinese,
63-
CreatedDate = callResource.StartTime ?? DateTimeOffset.Now,
63+
CreatedDate = callResource?.StartTime ?? DateTimeOffset.Now,
6464
OrderStatus = PhoneOrderOrderStatus.Pending,
65-
CustomerName = context.UserInfo.UserName,
66-
PhoneNumber = context.UserInfo.PhoneNumber
65+
CustomerName = context.UserInfo?.UserName,
66+
PhoneNumber = context.UserInfo?.PhoneNumber
6767
};
6868

6969
await _phoneOrderDataProvider.AddPhoneOrderRecordsAsync([record], cancellationToken: cancellationToken).ConfigureAwait(false);

0 commit comments

Comments
 (0)