mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: fix an any
This commit is contained in:
parent
bf37b6e7c5
commit
afe2d0db66
1 changed files with 3 additions and 3 deletions
|
|
@ -58,13 +58,13 @@ Sentry.init(sentryOptions)
|
|||
|
||||
export const withErrorLog: Middleware = function withErrorLog(method, args) {
|
||||
return [
|
||||
async function () {
|
||||
async function (...args) {
|
||||
try {
|
||||
await method.apply(null, arguments as any)
|
||||
await method(...args)
|
||||
} catch (error) {
|
||||
if (error instanceof Error) raiseError(error)
|
||||
}
|
||||
} as any, // TO FIX: not sure how to fix this yet
|
||||
} as typeof method,
|
||||
args,
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue