Skip to content

Commit 7aa1dca

Browse files
committed
chore(workflow): update ci yaml
1 parent f173c56 commit 7aa1dca

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ jobs:
3636
vercel-token: ${{ secrets.VERCEL_TOKEN }}
3737
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
3838
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_EXERCISEDB_STAGING}}
39+
vercel-args: --prod
3940
scope: ${{ secrets.VERCEL_ORG_ID }}

api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { handle } from '@hono/node-server/vercel'
2-
import app from '../dist/server.js'
2+
import app from '../dist/index.js'
33

44
export default handle(app)

src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { BodyPartController, EquipmentController, MuscleController, ExerciseCont
22
import { App } from './app'
33

44
const app = new App([
5-
// new ExerciseController(),
6-
// new MuscleController(),
7-
// new EquipmentController(),
8-
// new BodyPartController(),
9-
// new UserController()
5+
new ExerciseController(),
6+
new MuscleController(),
7+
new EquipmentController(),
8+
new BodyPartController()
109
]).getApp()
1110

1211
export default app

src/modules/exercises/controllers/exercise.controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ export class ExerciseController implements Routes {
357357
}
358358
)
359359

360-
// Get Exercises by Body Part
361360
this.controller.openapi(
362361
createRoute({
363362
method: 'get',

src/modules/exercises/services/exercise.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export class ExerciseService {
2929

3030
return this.getExercisesUseCase.execute(query)
3131
}
32+
33+
getExerciseById = (request: FetchExerciseByIdReq) => {
34+
return this.getExerciseByIdUseCase.execute(request)
35+
}
3236
async getAllExercises(params: GetAllExercisesArgs) {
3337
const query: GetExercisesArgs = {
3438
offset: params.offset,
@@ -68,10 +72,6 @@ export class ExerciseService {
6872
return this.getExercisesUseCase.execute(query)
6973
}
7074

71-
getExerciseById = (request: FetchExerciseByIdReq) => {
72-
return this.getExerciseByIdUseCase.execute(request)
73-
}
74-
7575
// Get exercises by body part
7676
async getExercisesByBodyPart(params: GetExercisesByBodyPartArgs) {
7777
const query: GetExercisesArgs = {

0 commit comments

Comments
 (0)