mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
server-esm: Remove dynamic imports due to past circular issues
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import becca from "../becca/becca.js";
|
||||
import BOption from "../becca/entities/boption.js";
|
||||
import { OptionRow } from '../becca/entities/rows';
|
||||
import sql from "./sql.js";
|
||||
|
||||
@@ -68,10 +69,7 @@ function setOption(name: string, value: string | number | boolean) {
|
||||
}
|
||||
}
|
||||
|
||||
function createOption(name: string, value: string | number, isSynced: boolean) {
|
||||
// to avoid circular dependency, need to find a better solution
|
||||
const BOption = require('../becca/entities/boption');
|
||||
|
||||
function createOption(name: string, value: string, isSynced: boolean) {
|
||||
new BOption({
|
||||
name: name,
|
||||
value: value,
|
||||
|
||||
Reference in New Issue
Block a user