Skip to content

Commit

Permalink
fix: test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Sep 20, 2024
1 parent 0a0fb25 commit e49f5ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/api/manager/websocket/route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NextResponse } from 'next/server';
import { NextResponse, NextRequest } from 'next/server';

const wsUrl = `ws://${process.env.CONTROL_PANEL_WS}`;

export async function POST(request: Request) {
export async function POST(request: NextRequest) {
const { action, inputSlot } = await request.json();

if (!wsUrl) {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useWebsocket.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { API_SECRET_KEY } from "../utils/constants";
import { API_SECRET_KEY } from '../utils/constants';

export function useWebsocket() {
const closeWebsocket = async (
Expand Down

0 comments on commit e49f5ba

Please sign in to comment.