mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Format with Prettier 2
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1ecf5def66
commit
3801b1b042
15 changed files with 36 additions and 94 deletions
|
@ -17,10 +17,7 @@ export class AuthToken {
|
|||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@ManyToOne(
|
||||
_ => User,
|
||||
user => user.authToken,
|
||||
)
|
||||
@ManyToOne((_) => User, (user) => user.authToken)
|
||||
user: User;
|
||||
|
||||
@Column()
|
||||
|
|
|
@ -19,10 +19,7 @@ export class Identity {
|
|||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@ManyToOne(
|
||||
_ => User,
|
||||
user => user.identities,
|
||||
)
|
||||
@ManyToOne((_) => User, (user) => user.identities)
|
||||
user: User;
|
||||
|
||||
@Column()
|
||||
|
|
|
@ -42,22 +42,13 @@ export class User {
|
|||
})
|
||||
email?: string;
|
||||
|
||||
@OneToMany(
|
||||
_ => Note,
|
||||
note => note.owner,
|
||||
)
|
||||
@OneToMany((_) => Note, (note) => note.owner)
|
||||
ownedNotes: Note[];
|
||||
|
||||
@OneToMany(
|
||||
_ => AuthToken,
|
||||
authToken => authToken.user,
|
||||
)
|
||||
@OneToMany((_) => AuthToken, (authToken) => authToken.user)
|
||||
authToken: AuthToken[];
|
||||
|
||||
@OneToMany(
|
||||
_ => Identity,
|
||||
identity => identity.user,
|
||||
)
|
||||
@OneToMany((_) => Identity, (identity) => identity.user)
|
||||
identities: Identity[];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue