aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/utils.ts
diff options
context:
space:
mode:
authorluz paz <luzpaz@pm.me>2022-06-07 09:45:06 -0400
committerChocobozzz <chocobozzz@cpy.re>2022-06-07 16:41:21 +0200
commit7a4fd56ccd86518a6b14c407fc977c7904337448 (patch)
tree6cf30232dff7f1a0740f0d240eb173da033e272b /server/models/utils.ts
parent6d9ed0b6cb439f53e6df2aa1e751369bdc0f76ab (diff)
downloadPeerTube-7a4fd56ccd86518a6b14c407fc977c7904337448.tar.gz
PeerTube-7a4fd56ccd86518a6b14c407fc977c7904337448.tar.zst
PeerTube-7a4fd56ccd86518a6b14c407fc977c7904337448.zip
Fix various typos
Found via `codespell -q 3 -S ./CREDITS.md,./CHANGELOG.md,./client/src/locale,./yarn.lock,./client/yarn.lock -L doubleclick,followings,nd,ot,ro,serie,splitted,tread,truthy`
Diffstat (limited to 'server/models/utils.ts')
-rw-r--r--server/models/utils.ts2
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
120function isOutdated (model: { createdAt: Date, updatedAt: Date }, refreshInterval: number) { 120function 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()