Skip to content

Commit

Permalink
Warnings: Handle missing odie-last-chat-id (#38785)
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero authored Aug 8, 2024
1 parent d9bbadc commit 6eba210
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed


Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function get_last_chat_id() {

$projected_response = array(
'odie_chat_id' => $response->odie_chat_id,
'odie_last_chat_id' => $response->odie_last_chat_id,
'odie_last_chat_id' => $response->odie_last_chat_id ?? null,
);

return rest_ensure_response( $projected_response );
Expand Down

0 comments on commit 6eba210

Please sign in to comment.