Skip to content

Commit

Permalink
Fix(Class): Edit class details use case - Persist new data
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur-Poffo committed Feb 26, 2024
1 parent 0fbdaac commit 68aa73e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export class EditClassDetailsUseCase implements UseCase<EditClassDetailsUseCaseR

classToEdit.classNumber = classNumber ?? classToEdit.classNumber

await this.classesRepository.save(classToEdit)

return right({
class: classToEdit
})
Expand Down
2 changes: 1 addition & 1 deletion src/infra/http/routes/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { getVideoDetailsController } from '../controllers/get-video-details'
import { verifyJwt } from '../middlewares/verify-jwt'

export async function videoRoutes(app: FastifyInstance) {
app.get('/videos/:videoKey', { onRequest: [verifyJwt] }, getVideoDetailsController)
app.get('/videos/:fileKey', { onRequest: [verifyJwt] }, getVideoDetailsController)
}

0 comments on commit 68aa73e

Please sign in to comment.