comparison src/delete_chat.js.luan @ 17:19901d6fb56f

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 30 Jul 2025 15:01:31 -0600
parents f5425a3c1898
children
comparison
equal deleted inserted replaced
16:f5425a3c1898 17:19901d6fb56f
13 chat = get_chat_by_id(chat) or error() 13 chat = get_chat_by_id(chat) or error()
14 chat.user_id == current_user().id or error() 14 chat.user_id == current_user().id or error()
15 chat.delete() 15 chat.delete()
16 Io.stdout = Http.response.text_writer() 16 Io.stdout = Http.response.text_writer()
17 %> 17 %>
18 location = '/list.html'; 18 location = '/chats.html';
19 <% 19 <%
20 end 20 end