File tree Expand file tree Collapse file tree 2 files changed +11
-26
lines changed
src/type-orm/entities/cafeterias Expand file tree Collapse file tree 2 files changed +11
-26
lines changed Original file line number Diff line number Diff line change 7777 run : |-
7878 echo '${{ steps.compute-ssh.outputs.stdout }}'
7979 echo '${{ steps.compute-ssh.outputs.stderr }}'
80-
81- # 7. Sentry 설정
82- - name : Create Sentry release
83- uses : getsentry/action-release@v1
84- env :
85- SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
86- SENTRY_ORG : ${{ secrets.SENTRY_ORG }}
87- SENTRY_PROJECT : ${{ secrets.SENTRY_PROJECT }}
88- with :
89- environment : production
90- inject : true
91- sourcemaps : ' ./dist'
Original file line number Diff line number Diff line change @@ -48,19 +48,16 @@ export class CafeteriasRepository {
4848 date : Date ,
4949 time : DietTime ,
5050 ) : Promise < CafeteriaDiet [ ] > {
51- return this . cafeteriaDietRepository . find ( {
52- select : {
53- dishCategory : true ,
54- dishType : true ,
55- dishName : true ,
56- } ,
57- where : {
58- cafeteria : {
59- id : cafeteriaId ,
60- } ,
61- date,
62- time,
63- } ,
64- } ) ;
51+ return this . cafeteriaDietRepository
52+ . createQueryBuilder ( 'diet' )
53+ . select ( [
54+ 'diet.dishCategory' ,
55+ 'diet.dishType' ,
56+ 'diet.dishName' ,
57+ ] )
58+ . where ( 'diet.cafeteria_id = :cafeteriaId' , { cafeteriaId } )
59+ . andWhere ( 'diet.date = :date' , { date } )
60+ . andWhere ( 'diet.time = :time' , { time } )
61+ . getMany ( ) ;
6562 }
6663}
You can’t perform that action at this time.
0 commit comments