Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendPeter committed Aug 17, 2024
1 parent cc79d57 commit 0cf26ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN npm run build -ws
####################

FROM node:20.11.1-bullseye-slim
ENV NODE_ENV production
ENV NODE_ENV=production
COPY --from=build /usr/bin/dumb-init /usr/bin/dumb-init
USER node
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/Models/Elections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export default class ElectionsDB implements IElectionStore {
let content;
try {
content = await fetch(`${sharedConfig.CLASSIC_DOMAIN}/${election_id}`, {signal: controller.signal})
.then((res) => res.text())
.catch((err) => {
.then((res:any) => res.text())
.catch((err:any) => {
Logger.error(ctx, 'error pinging star.vote', err)
return errorMessage;
})
Expand Down
4 changes: 3 additions & 1 deletion packages/backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"jest"
],
"lib": [
"ES2021.String"
"ES6",
"DOM",
"ES2021.String", // Added for replaceAll
]
},
"include": ["./src/**/*"]
Expand Down

0 comments on commit 0cf26ca

Please sign in to comment.