mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04:00
Rename viewcount to viewCount for compliance
Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
3f05fa4852
commit
b7e188cec2
4 changed files with 8 additions and 8 deletions
|
@ -47,7 +47,7 @@ export class Note {
|
|||
nullable: false,
|
||||
default: 0,
|
||||
})
|
||||
viewcount: number;
|
||||
viewCount: number;
|
||||
@ManyToOne((_) => User, (user) => user.ownedNotes, { onDelete: 'CASCADE' })
|
||||
owner: User;
|
||||
@OneToMany((_) => Revision, (revision) => revision.note, { cascade: true })
|
||||
|
@ -80,7 +80,7 @@ export class Note {
|
|||
const newNote = new Note();
|
||||
newNote.shortid = shortid;
|
||||
newNote.alias = alias;
|
||||
newNote.viewcount = 0;
|
||||
newNote.viewCount = 0;
|
||||
newNote.owner = owner;
|
||||
newNote.authorColors = [];
|
||||
newNote.userPermissions = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue