mirror of
https://github.com/directus/directus.git
synced 2026-01-30 04:38:13 -05:00
fixed some typing
This commit is contained in:
@@ -32,7 +32,7 @@ const checkCacheMiddleware: RequestHandler = asyncHandler(async (req, res, next)
|
||||
throw new RedisNotFoundException('Redis client does not exist');
|
||||
}
|
||||
|
||||
redisClient.get(key, (error, resultData) => {
|
||||
redisClient.get(key, (error: string, resultData: string) => {
|
||||
if (error) {
|
||||
throw new RedisNotFoundException('Error retreiving redis cache');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user