fixing a type error

This commit is contained in:
Keith Stevens
2023-01-14 17:07:37 +09:00
parent e1309b1d5a
commit 7de25f299c
+1 -1
View File
@@ -6,7 +6,7 @@ import { oasstApiClient } from "src/lib/oasst_api_client";
*/
const handler = withRole("admin", async (req, res) => {
const { user } = req.query;
const messages = await oasstApiClient.fetch_user_messages(user);
const messages = await oasstApiClient.fetch_user_messages(user as string);
res.status(200).json(messages);
});