diff options
Diffstat (limited to 'server/models/utils.ts')
-rw-r--r-- | server/models/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/utils.ts b/server/models/utils.ts index 88e31f22e..c468f748d 100644 --- a/server/models/utils.ts +++ b/server/models/utils.ts | |||
@@ -119,7 +119,7 @@ function getInstanceFollowsSort (value: string, lastSort: OrderItem = [ 'id', 'A | |||
119 | 119 | ||
120 | function isOutdated (model: { createdAt: Date, updatedAt: Date }, refreshInterval: number) { | 120 | function isOutdated (model: { createdAt: Date, updatedAt: Date }, refreshInterval: number) { |
121 | if (!model.createdAt || !model.updatedAt) { | 121 | if (!model.createdAt || !model.updatedAt) { |
122 | throw new Error('Miss createdAt & updatedAt attribuets to model') | 122 | throw new Error('Miss createdAt & updatedAt attributes to model') |
123 | } | 123 | } |
124 | 124 | ||
125 | const now = Date.now() | 125 | const now = Date.now() |