mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
feat(tasks): store parent note ID
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import server from "./server.js";
|
||||
|
||||
export async function createNewTask(title: string) {
|
||||
interface CreateNewTasksOpts {
|
||||
parentNoteId: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
export async function createNewTask({ parentNoteId, title }: CreateNewTasksOpts) {
|
||||
await server.post(`tasks`, {
|
||||
parentNoteId,
|
||||
title
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user