1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Tools: Apply rule @typescript-eslint/type-annotation-spacing

This commit is contained in:
Laurent Cozic
2020-11-12 19:13:28 +00:00
parent 62feb7ff60
commit d20694e52c
291 changed files with 2205 additions and 2203 deletions

View File

@@ -18,7 +18,7 @@ export default class Alarm extends BaseModel {
return BaseModel.TYPE_ALARM;
}
static byNoteId(noteId:string) {
static byNoteId(noteId: string) {
return this.modelSelectOne('SELECT * FROM alarms WHERE note_id = ?', [noteId]);
}
@@ -29,12 +29,12 @@ export default class Alarm extends BaseModel {
static async alarmIdsWithoutNotes() {
// https://stackoverflow.com/a/4967229/561309
const alarms = await this.db().selectAll('SELECT alarms.id FROM alarms LEFT JOIN notes ON alarms.note_id = notes.id WHERE notes.id IS NULL');
return alarms.map((a:any) => {
return alarms.map((a: any) => {
return a.id;
});
}
static async makeNotification(alarm:any, note:any = null):Promise<Notification> {
static async makeNotification(alarm: any, note: any = null): Promise<Notification> {
if (!note) {
note = await Note.load(alarm.note_id);
} else if (!note.todo_due) {
@@ -43,7 +43,7 @@ export default class Alarm extends BaseModel {
this.logger().warn('Reloaded note:', note);
}
const output:Notification = {
const output: Notification = {
id: alarm.id,
noteId: alarm.note_id,
date: new Date(note.todo_due),