@@ -63,7 +63,12 @@ export default class TeamsController {
6363 try {
6464 const { newDescription } = req . body ;
6565
66- const team = await TeamsService . editDescription ( req . currentUser , req . params . teamId , newDescription , req . organization ) ;
66+ const team = await TeamsService . editDescription (
67+ req . currentUser ,
68+ req . params . teamId as string ,
69+ newDescription ,
70+ req . organization
71+ ) ;
6772 res . status ( 200 ) . json ( team ) ;
6873 } catch ( error : unknown ) {
6974 next ( error ) ;
@@ -74,7 +79,7 @@ export default class TeamsController {
7479 try {
7580 const { slackId } = req . body ;
7681
77- const team = await TeamsService . editSlackId ( req . currentUser , req . organization , req . params . teamId , slackId ) ;
82+ const team = await TeamsService . editSlackId ( req . currentUser , req . organization , req . params . teamId as string , slackId ) ;
7883 res . status ( 200 ) . json ( team ) ;
7984 } catch ( error : unknown ) {
8085 next ( error ) ;
@@ -225,7 +230,7 @@ export default class TeamsController {
225230
226231 const teamType = await TeamsService . editTeamType (
227232 req . currentUser ,
228- req . params . teamTypeId ,
233+ req . params . teamTypeId as string ,
229234 name ,
230235 iconName ,
231236 description ,
@@ -252,7 +257,12 @@ export default class TeamsController {
252257 try {
253258 const { file } = req ;
254259 if ( ! file ) throw new HttpException ( 400 , 'Invalid or undefined image data' ) ;
255- const teamType = await TeamsService . setTeamTypeImage ( req . currentUser , req . params . teamTypeId , file , req . organization ) ;
260+ const teamType = await TeamsService . setTeamTypeImage (
261+ req . currentUser ,
262+ req . params . teamTypeId as string ,
263+ file ,
264+ req . organization
265+ ) ;
256266 res . status ( 200 ) . json ( teamType ) ;
257267 } catch ( error : unknown ) {
258268 next ( error ) ;
0 commit comments