mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 14:55:27 -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
|
@ -27,16 +27,13 @@ export class Authorship {
|
|||
/**
|
||||
* Revisions this authorship appears in
|
||||
*/
|
||||
@ManyToMany(
|
||||
_ => Revision,
|
||||
revision => revision.authorships,
|
||||
)
|
||||
@ManyToMany((_) => Revision, (revision) => revision.authorships)
|
||||
revisions: Revision[];
|
||||
|
||||
/**
|
||||
* User this authorship represents
|
||||
*/
|
||||
@ManyToOne(_ => User)
|
||||
@ManyToOne((_) => User)
|
||||
user: User;
|
||||
|
||||
@Column()
|
||||
|
|
|
@ -56,19 +56,12 @@ export class Revision {
|
|||
/**
|
||||
* Note this revision belongs to.
|
||||
*/
|
||||
@ManyToOne(
|
||||
_ => Note,
|
||||
note => note.revisions,
|
||||
{ onDelete: 'CASCADE' },
|
||||
)
|
||||
@ManyToOne((_) => Note, (note) => note.revisions, { onDelete: 'CASCADE' })
|
||||
note: Note;
|
||||
/**
|
||||
* All authorship objects which are used in the revision.
|
||||
*/
|
||||
@ManyToMany(
|
||||
_ => Authorship,
|
||||
authorship => authorship.revisions,
|
||||
)
|
||||
@ManyToMany((_) => Authorship, (authorship) => authorship.revisions)
|
||||
@JoinTable()
|
||||
authorships: Authorship[];
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ export class RevisionsService {
|
|||
note: note.id,
|
||||
},
|
||||
});
|
||||
return revisions.map(revision => this.toMetadataDto(revision));
|
||||
return revisions.map((revision) => this.toMetadataDto(revision));
|
||||
}
|
||||
|
||||
async getNoteRevision(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue