diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-03 01:15:19 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-03 01:15:19 +0200 |
commit | db46c332b37ab3ddb206b167d96e83b52fa0749f (patch) | |
tree | 67476f7a2f2f22ff2efc5bd8ed902d883cebc0dd | |
parent | :bug: fix entity missing an id (replace .insert with new Entity().save) (diff) | |
download | server-db46c332b37ab3ddb206b167d96e83b52fa0749f.tar.xz |
fix #309
-rw-r--r-- | util/src/entities/ConnectedAccount.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/src/entities/ConnectedAccount.ts b/util/src/entities/ConnectedAccount.ts index 75982d01..59a8f423 100644 --- a/util/src/entities/ConnectedAccount.ts +++ b/util/src/entities/ConnectedAccount.ts @@ -2,6 +2,8 @@ import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; +export interface PublicConnectedAccount extends Pick<ConnectedAccount, "name" | "type" | "verifie"> {} + @Entity("connected_accounts") export class ConnectedAccount extends BaseClass { @Column({ nullable: true }) |