Added Types to actions.js and reformat

Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Yannick Bungers 2020-04-11 16:08:40 +02:00 committed by David Mehren
parent f9193822a7
commit bb8297dca3
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
3 changed files with 122 additions and 131 deletions

View file

@ -114,7 +114,7 @@ export class Revision extends Model<Revision> {
@BelongsTo(() => Note, { foreignKey: 'noteId', constraints: false, onDelete: 'CASCADE', hooks: true })
note: Note;
getNoteRevisions (note: Note, callback): void {
static getNoteRevisions (note: Note, callback): void {
Revision.findAll({
where: {
noteId: note.id
@ -138,7 +138,7 @@ export class Revision extends Model<Revision> {
})
}
getPatchedNoteRevisionByTime (note: Note, time, errorCallback): void {
static getPatchedNoteRevisionByTime (note: Note, time, errorCallback): void {
// find all revisions to prepare for all possible calculation
Revision.findAll({
where: {