Skip to content

Commit 4519c24

Browse files
authored
Merge pull request #587 from contentstack/feature/workflow
workflow checks
2 parents 36f799d + f22c9dd commit 4519c24

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

upload-api/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
],
2727
"func-names": [0],
2828
"@typescript-eslint/no-unused-vars": "warn",
29+
"@typescript-eslint/no-var-requires": "off",
2930
"no-prototype-builtins": "off",
3031
"@typescript-eslint/no-explicit-any": "off",
3132
"no-constant-condition": "off"

upload-api/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ WORKDIR /app
88
COPY package*.json ./
99

1010
# Install application dependencies
11-
RUN npm install
11+
RUN npm install --force
1212

1313
# Copy the application code to the container
1414
COPY . .
1515

1616
# Expose the port your app will run on
17-
EXPOSE 3000
17+
EXPOSE 4002
1818

1919
# Define the command to run your application
20-
CMD ["node", "index.js"]
20+
CMD ["npm", "start"]
21+

upload-api/src/validators/contentful/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function contentfulValidator(data: string): boolean {
1414
jsonData = JSON.parse(data);
1515

1616
//iterate through jsonconfig to check to check if data is valid
17-
return Object.entries(jsonConfig).every(([key, prop]) => {
17+
return Object.values(jsonConfig).every((prop:any) => {
1818
// Check if the current property exists in the json data.
1919
if (jsonData?.hasOwnProperty(prop?.name)) {
2020
return true;

0 commit comments

Comments
 (0)