Skip to content

Commit

Permalink
merge: #3213
Browse files Browse the repository at this point in the history
3213: fix(auth-api) fix deploy issues r=stack72 a=theoephraim



Co-authored-by: Theo Ephraim <[email protected]>
  • Loading branch information
si-bors-ng[bot] and Theo Ephraim authored Jan 25, 2024
2 parents 76e42b3 + 21d77c7 commit 9a59078
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion app/auth-portal/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
variant="transparent"
tone="shade"
@mousedown.prevent
@click.prevent="profileMenuRef?.open || _.noop"
@click.prevent="profileMenuRef?.open($event) || _.noop"
>
<div class="mr-xs">Hi {{ authStore.bestUserLabel }}!</div>
<template #iconRight>
Expand Down Expand Up @@ -157,6 +157,11 @@
@click="authStore.REFRESH_AUTH0_PROFILE"
>Already verified?</VButton
>
<!-- normally we'd use the ErrorMessage component, but we're already using it as the wrapper here for a sort of alert -->
<p v-if="refreshAuth0Req.isError">
ERROR: {{ refreshAuth0Req.errorMessage }}
</p>
<VButton
v-if="!resendEmailVerificationReq.isSuccess"
tone="shade"
Expand All @@ -166,6 +171,9 @@
@click="authStore.RESEND_EMAIL_VERIFICATION"
>Resend Email</VButton
>
<p v-if="resendEmailVerificationReq.isError">
ERROR: {{ resendEmailVerificationReq.errorMessage }}
</p>
</Inline>
</ErrorMessage>
Expand Down
2 changes: 1 addition & 1 deletion app/auth-portal/src/store/auth.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const useAuthStore = defineStore("auth", {
method: "post",
url: `/users/${this.user.id}/resend-email-verification`,
onSuccess: (response) => {
this.user = response.user;
// returns { success: true }
},
onFail: (response) => {
// if we see this error, it means the backend will have updated the user already too
Expand Down
1 change: 1 addition & 0 deletions bin/auth-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ FROM installer as builder
WORKDIR /app/bin/auth-api
RUN pnpx prisma generate
RUN pnpm run build
RUN echo "strict-peer-dependencies=false" > .npmrc

RUN PRISMA_SKIP_POSTINSTALL_GENERATE=1 pnpm --prod --filter @si/auth-api deploy pruned
# RUN cp -r src/prisma-client dist
Expand Down

0 comments on commit 9a59078

Please sign in to comment.