API Vollständig Umgezogen
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { addNotification } from "#components/Notifications/shared";
|
||||
import { client } from "src/trpc";
|
||||
import { api } from "astro-typesafe-api/client";
|
||||
import { getClose } from "svelte-dialogs";
|
||||
|
||||
const close = getClose();
|
||||
@@ -8,7 +7,7 @@
|
||||
async function createTicket(e: SubmitEvent) {
|
||||
e.preventDefault();
|
||||
try {
|
||||
await client.v1.tickets.erstellen.mutate({
|
||||
await api.ticket.PUT.fetch({
|
||||
beschreibung: description,
|
||||
email: email,
|
||||
metadata: {
|
||||
|
||||
Reference in New Issue
Block a user