File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,17 @@ export class MineWinsConflictsResolver<T> implements ConflictsResolver<T> {
49
49
}
50
50
51
51
public async resolveAll ( ) {
52
- return await this . client . getConflicts < AxiosResponse < VBaseConflictData [ ] > > ( this . bucket ) . then ( ( data ) => {
53
- const { data : conflicts } : { data : VBaseConflictData [ ] } = data
54
-
55
- const resolved = conflicts . map ( ( conflict ) => {
56
- conflict . base . parsedContent = this . parseConflict ( conflict . base )
57
- conflict . master . parsedContent = this . parseConflict ( conflict . master )
58
- conflict . mine . parsedContent = this . parseConflict ( conflict . mine )
59
- return this . resolveConflictMineWins ( conflict )
60
- } )
61
-
62
- return resolved as any
52
+ const conflictsResponse = await this . client . getConflicts < AxiosResponse < VBaseConflictData [ ] > > ( this . bucket )
53
+ const { data : conflicts } : { data : VBaseConflictData [ ] } = conflictsResponse
54
+
55
+ const resolvedConflicts = conflicts . map ( ( conflict ) => {
56
+ conflict . base . parsedContent = this . parseConflict ( conflict . base )
57
+ conflict . master . parsedContent = this . parseConflict ( conflict . master )
58
+ conflict . mine . parsedContent = this . parseConflict ( conflict . mine )
59
+ return this . resolveConflictMineWins ( conflict )
63
60
} )
61
+
62
+ return resolvedConflicts
64
63
}
65
64
66
65
protected mergeMineWins ( base : Configuration , master : Configuration , mine : Configuration ) {
You can’t perform that action at this time.
0 commit comments