X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Futils.ts;h=c468f748d50c7c984ec61d2f1bfcc9dfb5ce623c;hb=082d32eb8873190e48329b61b91f87d71f3cf812;hp=88e31f22e0f6f1f92d0762d1a64f986f25c97522;hpb=5d2fd66ab4a75281dab6363ba9131adee7be3a2b;p=github%2FChocobozzz%2FPeerTube.git 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 function isOutdated (model: { createdAt: Date, updatedAt: Date }, refreshInterval: number) { if (!model.createdAt || !model.updatedAt) { - throw new Error('Miss createdAt & updatedAt attribuets to model') + throw new Error('Miss createdAt & updatedAt attributes to model') } const now = Date.now()