JS SDK conversation.updateWrapupCode timing issue

Trying to set a wrap-up code via the JS SDK immediately after a conversation ends. The conversations.conversation.updateWrapupCode call returns a 204 No Content, but the code doesn’t show up in the analytics API for a few minutes. It’s not a caching issue on the read side, the write seems to be queued or delayed.

Here is the handler logic. Am I missing a specific event listener or is the API endpoint just slow to propagate to the analytics store?

const onConversationUpdate = (ev: ConversationEvent) => {
 if (ev.conversation?.state === 'completed') {
 platformClient.conversations.conversation.updateWrapupCode(ev.conversation.id, {
 code: { id: '99999999-9999-9999-9999-999999999999' }
 });
 }
};