Dont include refresh_token from API
This commit is contained in:
parent
d76b0ead44
commit
5911e59a27
@ -31,7 +31,5 @@ export interface MailAccount extends ObjectWithPermissions {
|
|||||||
|
|
||||||
account_type: MailAccountType
|
account_type: MailAccountType
|
||||||
|
|
||||||
refresh_token?: string
|
|
||||||
|
|
||||||
expiration?: string // Date
|
expiration?: string // Date
|
||||||
}
|
}
|
||||||
|
@ -33,8 +33,7 @@ export class MailAccountService extends AbstractPaperlessService<MailAccount> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update(o: MailAccount) {
|
update(o: MailAccount) {
|
||||||
// Remove refresh_token and expiration from the object before updating
|
// Remove expiration from the object before updating
|
||||||
delete o.refresh_token
|
|
||||||
delete o.expiration
|
delete o.expiration
|
||||||
return super.update(o).pipe(tap(() => this.reload()))
|
return super.update(o).pipe(tap(() => this.reload()))
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,6 @@ class MailAccountSerializer(OwnedObjectSerializer):
|
|||||||
"permissions",
|
"permissions",
|
||||||
"set_permissions",
|
"set_permissions",
|
||||||
"account_type",
|
"account_type",
|
||||||
"refresh_token",
|
|
||||||
"expiration",
|
"expiration",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user