mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
only pass created_date from frontend
This commit is contained in:
parent
2ca691d3b8
commit
063f6c1d5a
@ -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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user