mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 16:22:39 +10:00
fix(invitations): fix types
This commit is contained in:
@ -377,7 +377,9 @@ import {
|
|||||||
TrashIcon,
|
TrashIcon,
|
||||||
XCircleIcon,
|
XCircleIcon,
|
||||||
} from "@heroicons/vue/24/solid";
|
} from "@heroicons/vue/24/solid";
|
||||||
|
import type { Invitation } from "@prisma/client";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
|
import type { SerializeObject } from "nitropack";
|
||||||
import LoadingButton from "~/components/LoadingButton.vue";
|
import LoadingButton from "~/components/LoadingButton.vue";
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
@ -390,7 +392,7 @@ useHead({
|
|||||||
|
|
||||||
const headers = useRequestHeaders(["cookie"]);
|
const headers = useRequestHeaders(["cookie"]);
|
||||||
const invitations = ref(
|
const invitations = ref(
|
||||||
await $fetch("/api/v1/admin/auth/invitation", {
|
await $fetch<Array<SerializeObject<Invitation>>>("/api/v1/admin/auth/invitation", {
|
||||||
headers,
|
headers,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user