added some error handling when updating chats/boards in API