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
|
||||
|
||||
refresh_token?: string
|
||||
|
||||
expiration?: string // Date
|
||||
}
|
||||
|
@ -33,8 +33,7 @@ export class MailAccountService extends AbstractPaperlessService<MailAccount> {
|
||||
}
|
||||
|
||||
update(o: MailAccount) {
|
||||
// Remove refresh_token and expiration from the object before updating
|
||||
delete o.refresh_token
|
||||
// Remove expiration from the object before updating
|
||||
delete o.expiration
|
||||
return super.update(o).pipe(tap(() => this.reload()))
|
||||
}
|
||||
|
@ -40,7 +40,6 @@ class MailAccountSerializer(OwnedObjectSerializer):
|
||||
"permissions",
|
||||
"set_permissions",
|
||||
"account_type",
|
||||
"refresh_token",
|
||||
"expiration",
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user