mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 22:14:53 +00:00
fix: couldn't list expire soon certificates
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user