From 0aef76c479bc7fc758e70e1cd478ade46761b51b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 Aug 2017 11:45:31 +0200 Subject: Formated -> Formatted --- server/models/user/user-interface.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/models/user/user-interface.ts') diff --git a/server/models/user/user-interface.ts b/server/models/user/user-interface.ts index 9bd3d2ebb..0b97a8f6d 100644 --- a/server/models/user/user-interface.ts +++ b/server/models/user/user-interface.ts @@ -2,14 +2,14 @@ import * as Sequelize from 'sequelize' import * as Promise from 'bluebird' // Don't use barrel, import just what we need -import { User as FormatedUser } from '../../../shared/models/users/user.model' +import { User as FormattedUser } from '../../../shared/models/users/user.model' import { UserRole } from '../../../shared/models/users/user-role.type' import { ResultList } from '../../../shared/models/result-list.model' export namespace UserMethods { export type IsPasswordMatch = (this: UserInstance, password: string) => Promise - export type ToFormatedJSON = (this: UserInstance) => FormatedUser + export type ToFormattedJSON = (this: UserInstance) => FormattedUser export type IsAdmin = (this: UserInstance) => boolean export type CountTotal = () => Promise @@ -29,7 +29,7 @@ export namespace UserMethods { export interface UserClass { isPasswordMatch: UserMethods.IsPasswordMatch, - toFormatedJSON: UserMethods.ToFormatedJSON, + toFormattedJSON: UserMethods.ToFormattedJSON, isAdmin: UserMethods.IsAdmin, countTotal: UserMethods.CountTotal, @@ -55,7 +55,7 @@ export interface UserInstance extends UserClass, UserAttributes, Sequelize.Insta updatedAt: Date isPasswordMatch: UserMethods.IsPasswordMatch - toFormatedJSON: UserMethods.ToFormatedJSON + toFormattedJSON: UserMethods.ToFormattedJSON isAdmin: UserMethods.IsAdmin } -- cgit v1.2.3