Skip to content

Commit

Permalink
Self review
Browse files Browse the repository at this point in the history
  • Loading branch information
bcspragu committed Sep 13, 2023
1 parent a267f18 commit e21c789
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/composables/useAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const useAPI = (): API => {
WITH_CREDENTIALS: true
}

// If we're on the server, forward our cookie header along to the backend
// API for auth. We don't do this for the UserClient because it uses separate
// auth.
let headers: Record<string, string> = {}
if (process.server) {
headers = Object.entries(useRequestHeaders(['cookie']))
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/admin/pacta-version/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (error.value) {
throw createError(error.value)
}
if (!persistedPactaVersion.value) {
throw new Error('PACTA version not found')
throw createError({ message: 'PACTA version not found' })
}
pactaVersion.value = { ...persistedPactaVersion.value }
const refreshPACTA = async () => {
Expand Down

0 comments on commit e21c789

Please sign in to comment.