aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/model-cache.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/model-cache.ts')
-rw-r--r--server/models/model-cache.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/models/model-cache.ts b/server/models/model-cache.ts
index eafb5c13c..3651267e7 100644
--- a/server/models/model-cache.ts
+++ b/server/models/model-cache.ts
@@ -1,5 +1,4 @@
1import { Model } from 'sequelize-typescript' 1import { Model } from 'sequelize-typescript'
2import * as Bluebird from 'bluebird'
3import { logger } from '@server/helpers/logger' 2import { logger } from '@server/helpers/logger'
4 3
5type ModelCacheType = 4type ModelCacheType =
@@ -52,7 +51,7 @@ class ModelCache {
52 51
53 if (cache.has(key)) { 52 if (cache.has(key)) {
54 logger.debug('Model cache hit for %s -> %s.', cacheType, key) 53 logger.debug('Model cache hit for %s -> %s.', cacheType, key)
55 return Bluebird.resolve<T>(cache.get(key)) 54 return Promise.resolve<T>(cache.get(key))
56 } 55 }
57 56
58 return fun().then(m => { 57 return fun().then(m => {