(account: any)
| 22 | } |
| 23 | |
| 24 | function hasAuthFn(account: any) { |
| 25 | if (account.slackAuthorizations?.length) { |
| 26 | return true; |
| 27 | } |
| 28 | if (account.discordAuthorizations?.length) { |
| 29 | return true; |
| 30 | } |
| 31 | return false; |
| 32 | } |
| 33 | |
| 34 | export function serializeAccount(account?: any): SerializedAccount { |
| 35 | const { |