Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
fix: AEROGEAR-8614 remove invalid strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki committed Feb 28, 2019
1 parent d0b3995 commit 4b0c14c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/voyager-conflicts/src/strategies/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import { ConflictResolutionStrategy } from '../api/ConflictResolutionStrategy'
import { ObjectStateData } from '../api/ObjectStateData'

function clientWinsstrategy (serverState: ObjectStateData, clientState: ObjectStateData) {
function clientWinsStrategy (serverState: ObjectStateData, clientState: ObjectStateData) {
return clientState
}

function serverWinsStrategy (serverState: ObjectStateData, clientState: ObjectStateData) {
return serverState
}

const clientWins: ConflictResolutionStrategy = clientWinsstrategy
const serverWins: ConflictResolutionStrategy = serverWinsStrategy
const clientWins: ConflictResolutionStrategy = clientWinsStrategy

export const strategies = {
clientWins,
serverWins
clientWins
}

0 comments on commit 4b0c14c

Please sign in to comment.