mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix(server): imports in migration not working
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
import sql from "../../src/services/sql";
 | 
					import sql from "../../../services/sql.js";
 | 
				
			||||||
import utils from "../../src/services/utils";
 | 
					import utils from "../../../services/utils.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interface NoteContentsRow {
 | 
					interface NoteContentsRow {
 | 
				
			||||||
    noteId: string;
 | 
					    noteId: string;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
import becca from "../../src/becca/becca";
 | 
					import becca from "../../../becca/becca.js";
 | 
				
			||||||
import becca_loader from "../../src/becca/becca_loader";
 | 
					import becca_loader from "../../../becca/becca_loader.js";
 | 
				
			||||||
import cls from "../../src/services/cls";
 | 
					import cls from "../../../services/cls.js";
 | 
				
			||||||
import log from "../../src/services/log";
 | 
					import log from "../../../services/log.js";
 | 
				
			||||||
import sql from "../../src/services/sql";
 | 
					import sql from "../../../services/sql.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default () => {
 | 
					export default () => {
 | 
				
			||||||
    cls.init(() => {
 | 
					    cls.init(() => {
 | 
				
			||||||
@@ -18,7 +18,7 @@ export default () => {
 | 
				
			|||||||
                if (attachment) {
 | 
					                if (attachment) {
 | 
				
			||||||
                    log.info(`Auto-converted note '${note.noteId}' into attachment '${attachment.attachmentId}'.`);
 | 
					                    log.info(`Auto-converted note '${note.noteId}' into attachment '${attachment.attachmentId}'.`);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            } catch (e) {
 | 
					            } catch (e: any) {
 | 
				
			||||||
                log.error(`Cannot convert note '${note.noteId}' to attachment: ${e.message} ${e.stack}`);
 | 
					                log.error(`Cannot convert note '${note.noteId}' to attachment: ${e.message} ${e.stack}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user