Mercurial Hosting > lang
diff src/save_chat.js.luan @ 32:d34d709a7a8e
region
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 03 Aug 2025 18:43:17 -0600 |
parents | 1e7d855afde3 |
children | 0fb3488a017d |
line wrap: on
line diff
--- a/src/save_chat.js.luan Sun Aug 03 17:05:38 2025 -0600 +++ b/src/save_chat.js.luan Sun Aug 03 18:43:17 2025 -0600 @@ -15,11 +15,13 @@ return function() local chat = Http.request.parameters.chat or error() local name = Http.request.parameters.name or error() + local language_region = Http.request.parameters.language_region or error() local voice = Http.request.parameters.voice or error() run_in_transaction( function() chat = get_chat_by_id(chat) or error() chat.user_id == current_user().id or error() chat.name = name + chat.language_region = language_region chat.voice = voice chat.save() end )