mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
chore(prettier): fix all files
This commit is contained in:
@@ -1,32 +1,32 @@
|
||||
"use strict";
|
||||
|
||||
import { Request } from 'express';
|
||||
import { Request } from "express";
|
||||
import cloningService from "../../services/cloning.js";
|
||||
|
||||
function cloneNoteToBranch(req: Request) {
|
||||
const {noteId, parentBranchId} = req.params;
|
||||
const {prefix} = req.body;
|
||||
const { noteId, parentBranchId } = req.params;
|
||||
const { prefix } = req.body;
|
||||
|
||||
return cloningService.cloneNoteToBranch(noteId, parentBranchId, prefix);
|
||||
}
|
||||
|
||||
function cloneNoteToParentNote(req: Request) {
|
||||
const {noteId, parentNoteId} = req.params;
|
||||
const {prefix} = req.body;
|
||||
const { noteId, parentNoteId } = req.params;
|
||||
const { prefix } = req.body;
|
||||
|
||||
return cloningService.cloneNoteToParentNote(noteId, parentNoteId, prefix);
|
||||
}
|
||||
|
||||
function cloneNoteAfter(req: Request) {
|
||||
const {noteId, afterBranchId} = req.params;
|
||||
const { noteId, afterBranchId } = req.params;
|
||||
|
||||
return cloningService.cloneNoteAfter(noteId, afterBranchId);
|
||||
}
|
||||
|
||||
function toggleNoteInParent(req: Request) {
|
||||
const {noteId, parentNoteId, present} = req.params;
|
||||
const { noteId, parentNoteId, present } = req.params;
|
||||
|
||||
return cloningService.toggleNoteInParent(present === 'true', noteId, parentNoteId);
|
||||
return cloningService.toggleNoteInParent(present === "true", noteId, parentNoteId);
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user