Skip to content

Commit

Permalink
Fixing some build and lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fozziethebeat committed Jan 12, 2023
1 parent 55635f1 commit 0386a8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/api/admin/user_messages.ts
Original file line number Diff line number Diff line change
@@ -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`, {
Expand Down

0 comments on commit 0386a8a

Please sign in to comment.