Skip to content

Commit b3f2c62

Browse files
committed
refactor: change types path
1 parent 89b981f commit b3f2c62

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/with-elysia/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ createBullBoard({
4444
options: {
4545
// This configuration fixes a build error on Bun caused by eval (https://github.com/oven-sh/bun/issues/5809#issuecomment-2065310008)
4646
uiBasePath: 'node_modules/@bull-board/ui',
47-
}
47+
},
4848
});
4949

5050
const app = new Elysia()
5151
.onError(({ error, code, request }) => {
5252
console.error(error, code, request.method, request.url);
5353
if (code === 'NOT_FOUND') return 'NOT_FOUND';
5454
})
55-
.use(await serverAdapter.registerPlugin())
55+
.use(serverAdapter.registerPlugin())
5656
.get('/add', async ({ query }) => {
5757
await exampleBullMq.add('Add', { title: query.title });
5858

examples/with-elysia/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"author": "kravetsone",
1414
"license": "ISC",
1515
"dependencies": {
16-
"@bull-board/elysia": "^6.7.10",
16+
"@bull-board/elysia": "^6.9.3",
1717
"bullmq": "^5.13.2",
1818
"elysia": "^1.1.24"
1919
}

packages/elysia/src/ElysiaAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {
77
HTTPMethod,
88
IServerAdapter,
99
UIConfig,
10-
} from '@bull-board/api/dist/typings/app.js';
10+
} from '@bull-board/api/typings/app';
1111
import ejs from 'ejs';
1212
import { Elysia } from 'elysia';
1313
import mime from 'mimeV4';

0 commit comments

Comments
 (0)