core: fix imports

This commit is contained in:
Abdullah Atta
2024-03-14 10:27:58 +05:00
parent a1b3327aa8
commit a8896b847f
3 changed files with 4 additions and 6 deletions

View File

@@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import Database from ".."; import Database from "..";
import { EVENTS } from "../../common"; import { EVENTS } from "../../common";
import { DatabaseUpdatedEvent } from "../../database";
import { logger } from "../../logger"; import { logger } from "../../logger";
import { DatabaseUpdatedEvent } from "../../types";
export class AutoSync { export class AutoSync {
timeout = 0; timeout = 0;

View File

@@ -26,9 +26,7 @@ import {
Attachment, Attachment,
ContentItem, ContentItem,
ContentType, ContentType,
DeleteEvent,
UnencryptedContentItem, UnencryptedContentItem,
UpdateEvent,
isDeleted isDeleted
} from "../types"; } from "../types";
import Database from "../api"; import Database from "../api";
@@ -38,6 +36,7 @@ import { NoteContent } from "./session-content";
import { InternalLink } from "../utils/internal-link"; import { InternalLink } from "../utils/internal-link";
import { tinyToTiptap } from "../migrations"; import { tinyToTiptap } from "../migrations";
import { EVENTS } from "../common"; import { EVENTS } from "../common";
import { DeleteEvent, UpdateEvent } from "../database";
export const EMPTY_CONTENT = (noteId: string): UnencryptedContentItem => ({ export const EMPTY_CONTENT = (noteId: string): UnencryptedContentItem => ({
noteId, noteId,

View File

@@ -24,12 +24,11 @@ import {
ItemMap, ItemMap,
ItemReference, ItemReference,
ItemReferences, ItemReferences,
ValueOf, ValueOf
UnlinkEvent
} from "../types"; } from "../types";
import Database from "../api"; import Database from "../api";
import { FilteredSelector, SQLCollection } from "../database/sql-collection"; import { FilteredSelector, SQLCollection } from "../database/sql-collection";
import { DatabaseSchema, isFalse } from "../database"; import { DatabaseSchema, UnlinkEvent, isFalse } from "../database";
import { SelectQueryBuilder } from "kysely"; import { SelectQueryBuilder } from "kysely";
import { EVENTS } from "../common"; import { EVENTS } from "../common";