Fixing some build and lint errors

This commit is contained in:
Keith Stevens
2023-01-12 15:05:31 +09:00
parent 55635f1a27
commit 0386a8aded
2 changed files with 2 additions and 2 deletions
@@ -14,7 +14,7 @@ interface UserMessagesCellProps {
/**
* Fetches the messages corresponding to a user and presents them in a table.
*/
const UserMessagesCell = ({ path }) => {
const UserMessagesCell = ({ path }: UserMessagesCellProps) => {
const url = path || "/api/messages/user";
const { data: messages, isLoading } = useSWR(url, fetcher, {
refreshInterval: 2000,
+1 -1
View File
@@ -1,6 +1,6 @@
import { withRole } from "src/lib/auth";
const handler = withRole("admin", async (req, res, token) => {
const handler = withRole("admin", async (req, res) => {
const { user } = req.query;
const messagesRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/frontend_users/local/${user}/messages`, {