diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/abuse/abuse-query-builder.ts | 2 | ||||
-rw-r--r-- | server/models/shared/abstract-run-query.ts | 2 | ||||
-rw-r--r-- | server/models/utils.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/server/models/abuse/abuse-query-builder.ts b/server/models/abuse/abuse-query-builder.ts index 025e6ba55..cfc924ba4 100644 --- a/server/models/abuse/abuse-query-builder.ts +++ b/server/models/abuse/abuse-query-builder.ts | |||
@@ -13,7 +13,7 @@ export type BuildAbusesQueryOptions = { | |||
13 | searchReporter?: string | 13 | searchReporter?: string |
14 | searchReportee?: string | 14 | searchReportee?: string |
15 | 15 | ||
16 | // video releated | 16 | // video related |
17 | searchVideo?: string | 17 | searchVideo?: string |
18 | searchVideoChannel?: string | 18 | searchVideoChannel?: string |
19 | videoIs?: AbuseVideoIs | 19 | videoIs?: AbuseVideoIs |
diff --git a/server/models/shared/abstract-run-query.ts b/server/models/shared/abstract-run-query.ts index f1182c7be..7f27a0c4b 100644 --- a/server/models/shared/abstract-run-query.ts +++ b/server/models/shared/abstract-run-query.ts | |||
@@ -2,7 +2,7 @@ import { QueryTypes, Sequelize, Transaction } from 'sequelize' | |||
2 | 2 | ||
3 | /** | 3 | /** |
4 | * | 4 | * |
5 | * Abstact builder to run video SQL queries | 5 | * Abstract builder to run video SQL queries |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | 8 | ||
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() |