diff --git a/packages/powersync-sdk-common/src/client/AbstractPowerSyncOpenFactory.ts b/packages/powersync-sdk-common/src/client/AbstractPowerSyncOpenFactory.ts index 996f4c4c..a94a09ce 100644 --- a/packages/powersync-sdk-common/src/client/AbstractPowerSyncOpenFactory.ts +++ b/packages/powersync-sdk-common/src/client/AbstractPowerSyncOpenFactory.ts @@ -1,4 +1,4 @@ -import { DBAdapter } from 'src/db/DBAdapter'; +import { DBAdapter } from '../db/DBAdapter'; import { Schema } from '../db/schema/Schema'; import { AbstractPowerSyncDatabase, PowerSyncDatabaseOptions } from './AbstractPowerSyncDatabase'; diff --git a/packages/powersync-sdk-common/src/client/sync/stream/AbstractStreamingSyncImplementation.ts b/packages/powersync-sdk-common/src/client/sync/stream/AbstractStreamingSyncImplementation.ts index 49623659..4bc49221 100644 --- a/packages/powersync-sdk-common/src/client/sync/stream/AbstractStreamingSyncImplementation.ts +++ b/packages/powersync-sdk-common/src/client/sync/stream/AbstractStreamingSyncImplementation.ts @@ -49,7 +49,7 @@ export const DEFAULT_STREAMING_SYNC_OPTIONS = { }; export abstract class AbstractStreamingSyncImplementation extends BaseObserver { - protected _lastSyncedAt: Date; + protected _lastSyncedAt: Date | null; protected options: AbstractStreamingSyncImplementationOptions; private isUploadingCrud: boolean; @@ -61,6 +61,7 @@ export abstract class AbstractStreamingSyncImplementation extends BaseObserver [this._isConnected, this._lastSyncedAt?.valueOf()]; const previousValues = takeSnapShot();