File tree 6 files changed +4389
-10
lines changed
6 files changed +4389
-10
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ You can find sample `.env` files inside the `/docs` directory.
102
102
1 . 📦 Install npm dependencies
103
103
104
104
``` bash
105
- npm install
105
+ yarn install
106
106
```
107
107
108
108
2 . ⚙ Local config
Original file line number Diff line number Diff line change 1
1
# Use the base image with Node.js
2
- FROM node:12.22.12-buster
2
+ FROM node:14.21.2-bullseye
3
3
4
4
# Copy the current directory into the Docker image
5
5
COPY . /challenge-api
@@ -8,6 +8,6 @@ COPY . /challenge-api
8
8
WORKDIR /challenge-api
9
9
10
10
# Install the dependencies from package.json
11
- RUN npm install
11
+ RUN yarn install
12
12
13
- CMD npm start
13
+ CMD yarn start
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ FROM node:10.20-jessie
2
2
3
3
COPY . /challenge-api
4
4
5
- RUN (cd /challenge-api && npm install)
5
+ RUN (cd /challenge-api && yarn install)
6
6
7
7
WORKDIR /challenge-api/mock-api
8
8
9
- RUN npm install
9
+ RUN yarn install
10
10
11
- CMD npm start
11
+ CMD yarn start
Original file line number Diff line number Diff line change 76
76
]
77
77
},
78
78
"engines" : {
79
- "node" : " 10 .x"
79
+ "node" : " 14 .x"
80
80
},
81
81
"volta" : {
82
- "node" : " 12.22.12 "
82
+ "node" : " 14.21.2 "
83
83
}
84
84
}
Original file line number Diff line number Diff line change @@ -79,7 +79,13 @@ class ChallengePhaseHelper {
79
79
p . scheduledStartDate = moment ( startDate ) . toDate ( )
80
80
}
81
81
if ( p . name === 'Submission' ) {
82
- p . scheduledStartDate = moment ( startDate ) . add ( 5 , 'minutes' ) . toDate ( )
82
+ if ( p . scheduledStartDate != null ) {
83
+ p . scheduledStartDate = moment ( p . scheduledStartDate ) . toDate ( )
84
+ }
85
+ else {
86
+ p . scheduledStartDate = moment ( startDate ) . add ( 5 , 'minutes' ) . toDate ( )
87
+ }
88
+
83
89
}
84
90
85
91
if ( moment ( p . scheduledStartDate ) . isSameOrBefore ( moment ( ) ) ) {
You can’t perform that action at this time.
0 commit comments