From 0aef76c479bc7fc758e70e1cd478ade46761b51b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 Aug 2017 11:45:31 +0200 Subject: Formated -> Formatted --- server/helpers/utils.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'server/helpers/utils.ts') diff --git a/server/helpers/utils.ts b/server/helpers/utils.ts index f326210f3..af5be0c69 100644 --- a/server/helpers/utils.ts +++ b/server/helpers/utils.ts @@ -14,19 +14,19 @@ function generateRandomString (size: number) { } interface FormatableToJSON { - toFormatedJSON () + toFormattedJSON () } -function getFormatedObjects (objects: T[], objectsTotal: number) { - const formatedObjects: U[] = [] +function getFormattedObjects (objects: T[], objectsTotal: number) { + const formattedObjects: U[] = [] objects.forEach(object => { - formatedObjects.push(object.toFormatedJSON()) + formattedObjects.push(object.toFormattedJSON()) }) const res: ResultList = { total: objectsTotal, - data: formatedObjects + data: formattedObjects } return res @@ -52,6 +52,6 @@ function isSignupAllowed () { export { badRequest, generateRandomString, - getFormatedObjects, + getFormattedObjects, isSignupAllowed } -- cgit v1.2.3