Skip to content

Commit

Permalink
fix: Fixed error if you dont have access to project
Browse files Browse the repository at this point in the history
  • Loading branch information
BottlecapDave committed Jul 8, 2023
1 parent 3834bef commit 88059d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions reminder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.16-stretch-slim as build
FROM node:18.16-buster-slim as build

WORKDIR /app

Expand All @@ -10,7 +10,7 @@ COPY src/. src/.

RUN npm run build

FROM node:16.13-stretch-slim as deploy
FROM node:18.16-buster-slim as deploy
WORKDIR /app

COPY --from=build /app/lib /app/lib
Expand Down
2 changes: 1 addition & 1 deletion reminder/src/gitlabService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class GitlabService {

const project = projectResp.data;
const resp = await axios.get(`${request.gitlabBaseURL}/api/v4/projects/${projectId}/merge_requests?state=opened&scope=all&sort=asc`, requestConfig);
if (projectResp.status === 403) {
if (resp.status === 403) {
throw new Error(`Not authorised to see merge requests for project '${projectId}'`);
}

Expand Down

0 comments on commit 88059d1

Please sign in to comment.