Skip to content

Commit

Permalink
fix chat update (#2715)
Browse files Browse the repository at this point in the history
fix #2710 fix #2711
  • Loading branch information
notmd authored Apr 18, 2023
1 parent b5b3bfb commit 43a9d9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
17 changes: 0 additions & 17 deletions website/src/pages/api/chat/hide.ts

This file was deleted.

3 changes: 3 additions & 0 deletions website/src/pages/api/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const handler = withoutRole("banned", async (req, res, token) => {
// TODO: re-activate later
// await client.delete_chat(req.query.chat_id as string);
data = {};
} else if (req.method === "PUT") {
await client.update_chat(req.body);
return res.status(200).end();
}

if (data) {
Expand Down
17 changes: 0 additions & 17 deletions website/src/pages/api/chat/title.ts

This file was deleted.

0 comments on commit 43a9d9c

Please sign in to comment.