diff src/save_chat.js.luan @ 31:1e7d855afde3

voices
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 03 Aug 2025 17:05:38 -0600
parents 505185272dd7
children d34d709a7a8e
line wrap: on
line diff
--- a/src/save_chat.js.luan	Sun Aug 03 12:25:01 2025 -0600
+++ b/src/save_chat.js.luan	Sun Aug 03 17:05:38 2025 -0600
@@ -15,10 +15,12 @@
 return function()
 	local chat = Http.request.parameters.chat or error()
 	local name = Http.request.parameters.name 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.voice = voice
 		chat.save()
 	end )
 	Io.stdout = Http.response.text_writer()