mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-09 11:15:08 +08:00
fixing a type error
This commit is contained in:
@@ -6,7 +6,7 @@ import { oasstApiClient } from "src/lib/oasst_api_client";
|
|||||||
*/
|
*/
|
||||||
const handler = withRole("admin", async (req, res) => {
|
const handler = withRole("admin", async (req, res) => {
|
||||||
const { user } = req.query;
|
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);
|
res.status(200).json(messages);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user