mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 23:18:59 +01:00
fix(services): fix type errors
This commit is contained in:
parent
85c6764864
commit
8778ca5f6c
@ -19,7 +19,7 @@ function getRunAtHours(note: BNote): number[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function runNotesWithLabel(runAttrValue: string) {
|
function runNotesWithLabel(runAttrValue: string) {
|
||||||
const instanceName = config.General ? config.General.instanceName : null;
|
const instanceName = config.General.instanceName;
|
||||||
const currentHours = new Date().getHours();
|
const currentHours = new Date().getHours();
|
||||||
const notes = attributeService.getNotesWithLabel("run", runAttrValue);
|
const notes = attributeService.getNotesWithLabel("run", runAttrValue);
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import optionService from "./options.js";
|
import optionService from "./options.js";
|
||||||
import type { OptionNames } from "./options_interface.js";
|
|
||||||
import config from "./config.js";
|
import config from "./config.js";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -11,8 +10,8 @@ import config from "./config.js";
|
|||||||
* to live sync server.
|
* to live sync server.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function get(name: OptionNames) {
|
function get(name: keyof typeof config.Sync) {
|
||||||
return (config["Sync"] && config["Sync"][name]) || optionService.getOption(name);
|
return (config["Sync"] && config["Sync"][name]) || optionService.getOption(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user