Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD committed Feb 1, 2025
1 parent 3bd1905 commit f4007e9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
15 changes: 10 additions & 5 deletions apps/shelve/app/composables/useVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,16 @@ export function useVariablesService() {
}

async function deleteVariables(ids: number[]) {
await $fetch(`/api/teams/${teamSlug}/projects/${projectId}/variables`, {
method: 'DELETE',
body: { variables: ids }
})
await fetchVariables()
try {
await $fetch(`/api/teams/${teamSlug}/projects/${projectId}/variables`, {
method: 'DELETE',
body: { variables: ids }
})
await fetchVariables()
} catch (error) {
console.log(error)
toast.error('Failed to delete variables')
}
}

return {
Expand Down
13 changes: 13 additions & 0 deletions apps/shelve/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default defineNuxtConfig({
ssr: false,

nitro: {
experimental: {
openAPI: true
},
rollupConfig: {
// @ts-expect-error - this is not typed
plugins: [vue()]
Expand All @@ -34,6 +37,16 @@ export default defineNuxtConfig({
resendApiKey: '',
encryptionKey: '',
adminEmails: '',
},
oauth: {
google: {
clientId: '',
clientSecret: '',
},
github: {
clientId: '',
clientSecret: '',
},
}
},

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f4007e9

Please sign in to comment.