Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ describe('KeysBusinessService', () => {
databaseService = module.get(DatabaseService);
browserTool = module.get<BrowserToolService>(BrowserToolService);
browserHistory = module.get<BrowserHistoryService>(BrowserHistoryService);
const scannerManager = get(service, 'scanner');
const keyInfoManager = get(service, 'keyInfoManager');
const scannerManager: any = get(service, 'scanner');
const keyInfoManager: any = get(service, 'keyInfoManager');
standaloneScanner = scannerManager.getStrategy(ConnectionType.STANDALONE);
clusterScanner = scannerManager.getStrategy(ConnectionType.CLUSTER);
stringTypeInfoManager = keyInfoManager.getStrategy(RedisDataType.String);
Expand Down
2 changes: 1 addition & 1 deletion redisinsight/api/src/modules/profiler/profiler.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ export class ProfilerGateway implements OnGatewayConnection, OnGatewayDisconnect
}

static getInstanceId(client: Socket): string {
return get(client, 'handshake.query.instanceId');
return get(client, 'handshake.query.instanceId') as string;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ProfilerClientProvider {

// set database alias as part of the log file name
const alias = (await this.databaseService.get(
get(socket, 'handshake.query.instanceId'),
get(socket, 'handshake.query.instanceId') as string,
)).name;
profilerLogFile.setAlias(alias);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('RedisClient', () => {
});
it('should emit message event (message source)', async () => {
await redisClient['connect']();
const [id, message] = await new Promise((res) => {
const [id, message] = await new Promise((res: (value: any[]) => void) => {
redisClient.on('message', (i, m) => res([i, m]));
nodeClient.emit('message', 'channel-a', 'message-a');
});
Expand All @@ -97,7 +97,7 @@ describe('RedisClient', () => {
});
it('should emit message event (pmessage source)', async () => {
await redisClient['connect']();
const [id, message] = await new Promise((res) => {
const [id, message] = await new Promise((res: (value: any[]) => void) => {
redisClient.on('message', (i, m) => res([i, m]));
nodeClient.emit('pmessage', '*', 'channel-aa', 'message-aa');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class RecommendationService {
exclude,
} = dto;

const recommendations = new Map([
const recommendations = new Map<string, () => Promise<Recommendation | null>>([
[
RECOMMENDATION_NAMES.LUA_SCRIPT,
async () => await this.recommendationProvider.determineLuaScriptRecommendation(client),
Expand Down
Loading