File tree 1 file changed +5
-1
lines changed
packages/firestore/test/util 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ import {
85
85
SetMutation ,
86
86
FieldTransform
87
87
} from '../../src/model/mutation' ;
88
+ import { normalizeByteString } from '../../src/model/normalize' ;
88
89
import { JsonObject , ObjectValue } from '../../src/model/object_value' ;
89
90
import { FieldPath , ResourcePath } from '../../src/model/path' ;
90
91
import { decodeBase64 , encodeBase64 } from '../../src/platform/base64' ;
@@ -1108,7 +1109,10 @@ export function generateBloomFilterProto(config: {
1108
1109
}
1109
1110
} ) ;
1110
1111
return {
1111
- bits : { bitmap : bloomFilter . bitmap , padding : bloomFilter . padding } ,
1112
+ bits : {
1113
+ bitmap : normalizeByteString ( bloomFilter . bitmap ) . toBase64 ( ) ,
1114
+ padding : bloomFilter . padding
1115
+ } ,
1112
1116
hashCount : bloomFilter . hashCount
1113
1117
} ;
1114
1118
}
You can’t perform that action at this time.
0 commit comments