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 { EVENTS } from "../../common";
import { DatabaseUpdatedEvent } from "../../database";
import { logger } from "../../logger";
import { DatabaseUpdatedEvent } from "../../types";
export class AutoSync {
timeout = 0;

View File

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

View File

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