Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdBarho committed Apr 12, 2023
1 parent c754766 commit 3b895cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/pages/api/admin/status.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { withAnyRole } from "src/lib/auth";
import { createApiClientFromUser } from "src/lib/oasst_client_factory";
import { BackendUserCore } from "src/types/Users";

/**
* Returns tasks availability, stats, and tree manager stats.
*/
const handler = withAnyRole(["admin", "moderator"], async (req, res) => {
// NOTE: why are we using a dummy user here?
const dummyUser = {
const dummyUser: BackendUserCore = {
id: "__dummy_user__",
display_name: "Dummy User",
auth_method: "local",
Expand Down

0 comments on commit 3b895cd

Please sign in to comment.