You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
@ -3,6 +3,7 @@ import { fileApi } from '../testing/../testing/test-utils';
|
||||
import Folder from '../models/Folder';
|
||||
import Note from '../models/Note';
|
||||
import BaseItem from '../models/BaseItem';
|
||||
import { FolderEntity, NoteEntity } from '../services/database/types';
|
||||
|
||||
export async function allNotesFolders() {
|
||||
const folders = await Folder.all();
|
||||
@ -25,7 +26,7 @@ async function remoteItemsByTypes(types: number[]) {
|
||||
return output;
|
||||
}
|
||||
|
||||
export async function remoteNotesAndFolders() {
|
||||
export async function remoteNotesAndFolders(): Promise<(NoteEntity | FolderEntity)[]> {
|
||||
return remoteItemsByTypes([BaseModel.TYPE_NOTE, BaseModel.TYPE_FOLDER]);
|
||||
}
|
||||
|
||||
|
@ -850,7 +850,7 @@ async function createNTestNotes(n: number, folder: any, tagIds: string[] = null,
|
||||
const notes = [];
|
||||
for (let i = 0; i < n; i++) {
|
||||
const title_ = n > 1 ? `${title}${i}` : title;
|
||||
const note = await Note.save({ title: title_, parent_id: folder.id, is_conflict: 0 });
|
||||
const note = await Note.save({ title: title_, parent_id: folder.id, is_conflict: 0, deleted_time: 0 });
|
||||
notes.push(note);
|
||||
await time.msleep(10);
|
||||
}
|
||||
|
Reference in New Issue
Block a user