refactor: replace direct Paperless upload with client-side document download functionality
Build and Push Multi-Platform Images / build-and-push (push) Successful in 36s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 36s
This commit is contained in:
1 parent
4f1f030423
commit
e08a5697f0
5 files changed
+34
-137
No files matched your search
@@ -107,17 +107,8 @@ export const inboxApi = {
|
||||
)
|
||||
.then((r) => r.data),
|
||||
|
||||
saveToPaperless: (
|
||||
id: string,
|
||||
body: {
|
||||
title: string;
|
||||
date?: string;
|
||||
documentTypeId?: number;
|
||||
correspondentId?: number;
|
||||
tagIds?: number[];
|
||||
},
|
||||
) =>
|
||||
api.post(`/api/inbox/${encodeURIComponent(id)}/save-to-paperless`, body).then(() => {}),
|
||||
downloadBlob: (id: string) =>
|
||||
api.get<Blob>(`/api/inbox/${encodeURIComponent(id)}/download`, { responseType: 'blob' }).then((r) => r.data),
|
||||
|
||||
sendEmail: (
|
||||
id: string,
|
||||
|
||||
Reference in new issue
Block a user