Skip to content

Commit

Permalink
reordered some args after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Primož Bajželj committed Jan 16, 2024
1 parent b8a9ca5 commit 3fb82dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/sync/impl/applyRemote.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { Database } from '../..'
import type {
SyncDatabaseChangeSet,
SyncLog,
SyncConflictResolver,
SyncShouldUpdateRecord,
SyncConflictResolver,
} from '../index'

export default function applyRemoteChanges(
Expand All @@ -13,8 +13,8 @@ export default function applyRemoteChanges(
db: Database,
sendCreatedAsUpdated: boolean,
log?: SyncLog,
shouldUpdateRecord?: SyncShouldUpdateRecord,
conflictResolver?: SyncConflictResolver,
_unsafeBatchPerCollection?: boolean,
syncUpdateCondition?: SyncUpdateCondition,
}
): Promise<void>
2 changes: 1 addition & 1 deletion src/sync/impl/applyRemote.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function prepareApplyRemoteChangesToCollection<T: Model>(
collection: Collection<T>,
context: ApplyRemoteChangesContext,
): Array<?T> {
const { db, sendCreatedAsUpdated, log, conflictResolver, shouldUpdateRecord } = context
const { db, sendCreatedAsUpdated, log, shouldUpdateRecord, conflictResolver } = context
const { table } = collection
const {
created,
Expand Down
2 changes: 1 addition & 1 deletion src/sync/impl/helpers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { RawRecord, DirtyRaw } from '../../RawRecord'
import type {
SyncLog,
SyncDatabaseChangeSet,
SyncConflictResolver,
SyncShouldUpdateRecord,
SyncConflictResolver,
} from '../index'

// Returns raw record with naive solution to a conflict based on local `_changed` field
Expand Down
2 changes: 1 addition & 1 deletion src/sync/impl/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function requiresUpdate<T: Model>(
): boolean {
if (shouldUpdateRecord) {
if (!shouldUpdateRecord(collection.table, local, dirtyRemote)) {
return false;
return false
}
}

Expand Down

0 comments on commit 3fb82dd

Please sign in to comment.