mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
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:
parent
f9193822a7
commit
bb8297dca3
3 changed files with 122 additions and 131 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue