only pass created_date from frontend

This commit is contained in:
Michael Shamoon 2022-05-16 00:01:57 -07:00
parent 2ca691d3b8
commit 063f6c1d5a

View File

@ -121,6 +121,12 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
return url
}
update(o: PaperlessDocument): Observable<PaperlessDocument> {
// we want to only set created_date
o.created = undefined
return super.update(o)
}
uploadDocument(formData) {
return this.http.post(
this.getResourceUrl(null, 'post_document'),