mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
fix tests
This commit is contained in:
parent
50ecdc2ff1
commit
8e55fe31ee
@ -458,7 +458,7 @@ export default class Note extends BaseItem {
|
|||||||
return this.modelSelectAll('SELECT * FROM notes WHERE is_conflict = 0');
|
return this.modelSelectAll('SELECT * FROM notes WHERE is_conflict = 0');
|
||||||
}
|
}
|
||||||
|
|
||||||
static async updateGeolocation(noteId: string) {
|
public static async updateGeolocation(noteId: string): Promise<void> {
|
||||||
if (!Setting.value('trackLocation')) return;
|
if (!Setting.value('trackLocation')) return;
|
||||||
if (!Note.updateGeolocationEnabled_) return;
|
if (!Note.updateGeolocationEnabled_) return;
|
||||||
|
|
||||||
@ -503,7 +503,7 @@ export default class Note extends BaseItem {
|
|||||||
note.longitude = geoData.coords.longitude;
|
note.longitude = geoData.coords.longitude;
|
||||||
note.latitude = geoData.coords.latitude;
|
note.latitude = geoData.coords.latitude;
|
||||||
note.altitude = geoData.coords.altitude;
|
note.altitude = geoData.coords.altitude;
|
||||||
return Note.save(note, { ignoreProvisionalFlag: true });
|
await Note.save(note, { ignoreProvisionalFlag: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
static filter(note: NoteEntity) {
|
static filter(note: NoteEntity) {
|
||||||
|
Loading…
Reference in New Issue
Block a user