Skip to content

Commit c01ca10

Browse files
committed
a bit of types
1 parent be9bfa7 commit c01ca10

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
export class BaseQueueEventsBus {
22
protected readonly subscribers: Record<string, any> = {};
33

4-
public subscribe(id, callback) {
4+
public subscribe(id: string, callback) {
55
this.subscribers[id] = { id, callback };
66
}
77

8-
public unsubscribe(id) {
8+
public unsubscribe(id: string) {
99
delete this.subscribers[id];
1010
}
1111
}

packages/cubejs-query-orchestrator/src/orchestrator/QueryOrchestrator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,11 @@ export class QueryOrchestrator {
448448
return this.preAggregations.cancelQueriesFromQueue(queryKeys, dataSource);
449449
}
450450

451-
public async subscribeQueueEvents(id, callback) {
451+
public async subscribeQueueEvents(id: string, callback) {
452452
return this.getQueueEventsBus().subscribe(id, callback);
453453
}
454454

455-
public async unSubscribeQueueEvents(id) {
455+
public async unSubscribeQueueEvents(id: string) {
456456
return this.getQueueEventsBus().unsubscribe(id);
457457
}
458458

packages/cubejs-server-core/src/core/OrchestratorApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class OrchestratorApi {
174174
}
175175

176176
/**
177-
* Tests worker's connections to the Cubstore and, if not in the rollup only
177+
* Tests worker's connections to the Cubestore and, if not in the rollup only
178178
* mode, to the datasources.
179179
*/
180180
public async testConnection() {
@@ -274,11 +274,11 @@ export class OrchestratorApi {
274274
return this.orchestrator.cancelPreAggregationQueriesFromQueue(queryKeys, dataSource);
275275
}
276276

277-
public async subscribeQueueEvents(id, callback) {
277+
public async subscribeQueueEvents(id: string, callback) {
278278
return this.orchestrator.subscribeQueueEvents(id, callback);
279279
}
280280

281-
public async unSubscribeQueueEvents(id) {
281+
public async unSubscribeQueueEvents(id: string) {
282282
return this.orchestrator.unSubscribeQueueEvents(id);
283283
}
284284

0 commit comments

Comments
 (0)