mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
only pass created_date from frontend
This commit is contained in:
parent
2ca691d3b8
commit
063f6c1d5a
1 changed files with 6 additions and 0 deletions
|
|
@ -121,6 +121,12 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update(o: PaperlessDocument): Observable<PaperlessDocument> {
|
||||||
|
// we want to only set created_date
|
||||||
|
o.created = undefined
|
||||||
|
return super.update(o)
|
||||||
|
}
|
||||||
|
|
||||||
uploadDocument(formData) {
|
uploadDocument(formData) {
|
||||||
return this.http.post(
|
return this.http.post(
|
||||||
this.getResourceUrl(null, 'post_document'),
|
this.getResourceUrl(null, 'post_document'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue