Skip to content

Commit

Permalink
Fix error delete post from cloudflare and use post instead of delete …
Browse files Browse the repository at this point in the history
…method
  • Loading branch information
yunusefendi52 committed Dec 4, 2024
1 parent 9eff788 commit 3f5bdf2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/AppApiKeys.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ const { mutate, data, isPending } = useMutation({
const { mutate: deleteApiKeyApi } = useMutation({
mutationFn: (r: any) => {
return $fetch('/api/api-keys/delete-api-key', {
method: 'delete',
return $fetch.raw('/api/api-keys/delete-api-key', {
method: 'post',
query: {
orgName,
appName,
Expand Down
2 changes: 1 addition & 1 deletion components/PeopleOrg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const { mutate: deleteRole, isPending: deleteRoleIsPending } = useMutation({
mutationFn: async (req: any) => {
const email = req.prop.data.email
await $fetch('/api/org-people/remove-user-from-org', {
method: 'delete',
method: 'post',
body: { email, orgName },
})
refresh()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<span class="text-sm">Release Id {{ detailArtifact?.releaseId }}</span>
<span class="font-semibold text-xl">Version {{ detailArtifact?.versionName2 }} ({{
detailArtifact?.versionCode2
}})</span>
}})</span>
<span class="text-lg">{{ formatDate(detailArtifact?.createdAt) }}</span>
</div>
<div class="flex flex-col gap-2 items-stretch">
Expand Down Expand Up @@ -111,7 +111,7 @@ const router = useRouter()
const { mutate, isPending } = useMutation({
mutationFn: (r) => {
return $fetch.raw('/api/artifacts/delete-artifact', {
method: 'delete',
method: 'post',
query: {
orgName,
appName,
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 3f5bdf2

Please sign in to comment.