@@ -235,8 +235,8 @@ const authenticatedRoutes = fastifyPlugin(
235
235
operation : { type : `${ ROUTE_OPERATIONS . TUS_CREATE_UPLOAD } ${ options . operation || '' } ` } ,
236
236
} ,
237
237
} ,
238
- ( req , res ) => {
239
- options . tusServer . handle ( req . raw , res . raw )
238
+ async ( req , res ) => {
239
+ await options . tusServer . handle ( req . raw , res . raw )
240
240
}
241
241
)
242
242
@@ -248,8 +248,8 @@ const authenticatedRoutes = fastifyPlugin(
248
248
operation : { type : `${ ROUTE_OPERATIONS . TUS_CREATE_UPLOAD } ${ options . operation || '' } ` } ,
249
249
} ,
250
250
} ,
251
- ( req , res ) => {
252
- options . tusServer . handle ( req . raw , res . raw )
251
+ async ( req , res ) => {
252
+ await options . tusServer . handle ( req . raw , res . raw )
253
253
}
254
254
)
255
255
@@ -261,8 +261,8 @@ const authenticatedRoutes = fastifyPlugin(
261
261
operation : { type : `${ ROUTE_OPERATIONS . TUS_UPLOAD_PART } ${ options . operation || '' } ` } ,
262
262
} ,
263
263
} ,
264
- ( req , res ) => {
265
- options . tusServer . handle ( req . raw , res . raw )
264
+ async ( req , res ) => {
265
+ await options . tusServer . handle ( req . raw , res . raw )
266
266
}
267
267
)
268
268
fastify . patch (
@@ -276,8 +276,8 @@ const authenticatedRoutes = fastifyPlugin(
276
276
operation : { type : `${ ROUTE_OPERATIONS . TUS_UPLOAD_PART } ${ options . operation || '' } ` } ,
277
277
} ,
278
278
} ,
279
- ( req , res ) => {
280
- options . tusServer . handle ( req . raw , res . raw )
279
+ async ( req , res ) => {
280
+ await options . tusServer . handle ( req . raw , res . raw )
281
281
}
282
282
)
283
283
fastify . head (
@@ -288,8 +288,8 @@ const authenticatedRoutes = fastifyPlugin(
288
288
operation : { type : `${ ROUTE_OPERATIONS . TUS_GET_UPLOAD } ${ options . operation || '' } ` } ,
289
289
} ,
290
290
} ,
291
- ( req , res ) => {
292
- options . tusServer . handle ( req . raw , res . raw )
291
+ async ( req , res ) => {
292
+ await options . tusServer . handle ( req . raw , res . raw )
293
293
}
294
294
)
295
295
fastify . delete (
@@ -303,8 +303,8 @@ const authenticatedRoutes = fastifyPlugin(
303
303
operation : { type : `${ ROUTE_OPERATIONS . TUS_DELETE_UPLOAD } ${ options . operation || '' } ` } ,
304
304
} ,
305
305
} ,
306
- ( req , res ) => {
307
- options . tusServer . handle ( req . raw , res . raw )
306
+ async ( req , res ) => {
307
+ await options . tusServer . handle ( req . raw , res . raw )
308
308
}
309
309
)
310
310
} )
@@ -341,8 +341,8 @@ const publicRoutes = fastifyPlugin(
341
341
operation : { type : `${ ROUTE_OPERATIONS . TUS_OPTIONS } ${ options . operation || '' } ` } ,
342
342
} ,
343
343
} ,
344
- ( req , res ) => {
345
- options . tusServer . handle ( req . raw , res . raw )
344
+ async ( req , res ) => {
345
+ await options . tusServer . handle ( req . raw , res . raw )
346
346
}
347
347
)
348
348
@@ -358,8 +358,8 @@ const publicRoutes = fastifyPlugin(
358
358
operation : { type : `${ ROUTE_OPERATIONS . TUS_OPTIONS } ${ options . operation || '' } ` } ,
359
359
} ,
360
360
} ,
361
- ( req , res ) => {
362
- options . tusServer . handle ( req . raw , res . raw )
361
+ async ( req , res ) => {
362
+ await options . tusServer . handle ( req . raw , res . raw )
363
363
}
364
364
)
365
365
} )
0 commit comments