Skip to content

Commit ba6744d

Browse files
committed
fix: downgrade prisma and re-apply hono middleware
Issue is triggered by: getsentry/sentry-javascript#14793
1 parent 9f8d874 commit ba6744d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

apps/api/src/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@ import customSettings from './lib/custom-settings'
1111
import { startJobs } from './lib/jobs'
1212
import mods from './lib/mods'
1313

14+
import { sentry } from '@hono/sentry'
15+
import { SENTRY_OPTIONS } from './lib/constants'
1416
import './lib/jobs/synchronize-mods'
1517

1618
const app = new Hono()
1719

20+
app.use(
21+
'*',
22+
sentry({
23+
...SENTRY_OPTIONS
24+
})
25+
)
1826
app.use(etag(), logger(), secureHeaders(), trimTrailingSlash())
1927
app.use('*', requestId())
2028
app.use('*', cors())

packages/database/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"studio": "prisma studio"
1919
},
2020
"dependencies": {
21-
"@prisma/client": "^6.1.0",
21+
"@prisma/client": "^5.10.2",
2222
"@tauri-apps/plugin-fs": "^2.2.0"
2323
},
2424
"devDependencies": {
2525
"@deadlock-mods/eslint-config": "workspace:*",
2626
"@deadlock-mods/typescript-config": "workspace:*",
2727
"eslint": "^8.57.0",
28-
"prisma": "^6.1.0",
28+
"prisma": "^5.10.2",
2929
"rimraf": "^5.0.5",
3030
"tsup": "^8.0.2",
3131
"tsx": "4.19.1",

0 commit comments

Comments
 (0)