fix: couldn't list expire soon certificates

This commit is contained in:
Fu Diwei
2025-01-21 21:41:25 +08:00
parent d5568608f5
commit c61b2d2d3f
4 changed files with 53 additions and 60 deletions

View File

@@ -6,7 +6,7 @@ import { getPocketBase } from "@/repository/_pocketbase";
export const archive = async (id: string, format?: CertificateFormatType) => {
const pb = getPocketBase();
const resp = await pb.send<BaseResponse>(`/api/certificates/${encodeURIComponent(id)}/archive`, {
const resp = await pb.send<BaseResponse<string>>(`/api/certificates/${encodeURIComponent(id)}/archive`, {
method: "POST",
headers: {
"Content-Type": "application/json",