Skip to content

Commit e139c94

Browse files
committed
fixed docker build
1 parent 0855562 commit e139c94

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN npm install -g pnpm
1010

1111
RUN pnpm i --frozen-lockfile
1212

13-
ENV SKIP_ENV_VALIDATION=1
13+
ARG SKIP_ENV_VALIDATION=1
1414

1515
RUN pnpm build
1616

src/app/server/token.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ export const getAccessToken = async (): Promise<string> => {
3434
return AccessToken;
3535
}
3636

37-
if (!ZETTLE_CLIENT_SECRET || !ZETTLE_CLIENT_ID) {
38-
throw Error("Missing Zettle API key or client ID");
39-
}
40-
4137
const response = await fetch("https://oauth.zettle.com/token", {
4238
method: "POST",
4339
headers: {
@@ -61,4 +57,4 @@ export const getAccessToken = async (): Promise<string> => {
6157
AccessToken = accessToken;
6258

6359
return accessToken;
64-
};
60+
};

0 commit comments

Comments
 (0)