Dont include refresh_token from API
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user