X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Futils.ts;h=c468f748d50c7c984ec61d2f1bfcc9dfb5ce623c;hb=2e401e8575decb1d491d0db48ca1ab1eba5b2a66;hp=88e31f22e0f6f1f92d0762d1a64f986f25c97522;hpb=e771ff815dba3b4a95633f4e1e10dacd222dfe61;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()