File tree Expand file tree Collapse file tree 4 files changed +3
-13
lines changed Expand file tree Collapse file tree 4 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,6 @@ export class MapeoProject extends TypedEmitter {
345
345
346
346
this . #translationApi = new TranslationApi ( {
347
347
dataType : this . #dataTypes. translation ,
348
- table : translationTable ,
349
348
} )
350
349
351
350
///////// 4. Replicate local peers automatically
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ export default class TranslationApi {
14
14
* Set<import('@comapeo/schema/dist/types.js').SchemaName>>} */
15
15
#translatedLanguageCodeToSchemaNames = new Map ( )
16
16
#dataType
17
- #table
18
17
#indexPromise
19
18
20
19
/**
@@ -26,11 +25,9 @@ export default class TranslationApi {
26
25
* Translation,
27
26
* TranslationValue
28
27
* >} opts.dataType
29
- * @param {typeof import('./schema/project.js').translationTable } opts.table
30
28
*/
31
- constructor ( { dataType, table } ) {
29
+ constructor ( { dataType } ) {
32
30
this . #dataType = dataType
33
- this . #table = table
34
31
this . #indexPromise = this . #dataType
35
32
. getMany ( )
36
33
. then ( ( docs ) => {
Original file line number Diff line number Diff line change @@ -358,10 +358,7 @@ async function testenv(opts = {}) {
358
358
} ,
359
359
} )
360
360
361
- const translationApi = new TranslationApi ( {
362
- dataType : translationDataType ,
363
- table : translationTable ,
364
- } )
361
+ const translationApi = new TranslationApi ( { dataType : translationDataType } )
365
362
366
363
const dataType = new DataType ( {
367
364
dataStore,
Original file line number Diff line number Diff line change @@ -151,8 +151,5 @@ function setup() {
151
151
} ,
152
152
} )
153
153
154
- return new TranslationApi ( {
155
- dataType,
156
- table,
157
- } )
154
+ return new TranslationApi ( { dataType } )
158
155
}
You can’t perform that action at this time.
0 commit comments