only pass created_date from frontend

This commit is contained in:
Michael Shamoon committed 2022-05-18 03:25:02 -07:00
1 parent 2ca691d3b8
commit 063f6c1d5a
1 file changed
+6
@@ -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'),