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/pod/pod-interface.ts | 6 +++--- server/models/pod/pod.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'server/models/pod') diff --git a/server/models/pod/pod-interface.ts b/server/models/pod/pod-interface.ts index 340d4f1a7..8b0b72167 100644 --- a/server/models/pod/pod-interface.ts +++ b/server/models/pod/pod-interface.ts @@ -2,10 +2,10 @@ import * as Sequelize from 'sequelize' import * as Promise from 'bluebird' // Don't use barrel, import just what we need -import { Pod as FormatedPod } from '../../../shared/models/pods/pod.model' +import { Pod as FormattedPod } from '../../../shared/models/pods/pod.model' export namespace PodMethods { - export type ToFormatedJSON = (this: PodInstance) => FormatedPod + export type ToFormattedJSON = (this: PodInstance) => FormattedPod export type CountAll = () => Promise @@ -53,7 +53,7 @@ export interface PodInstance extends PodClass, PodAttributes, Sequelize.Instance createdAt: Date updatedAt: Date - toFormatedJSON: PodMethods.ToFormatedJSON, + toFormattedJSON: PodMethods.ToFormattedJSON, } export interface PodModel extends PodClass, Sequelize.Model {} diff --git a/server/models/pod/pod.ts b/server/models/pod/pod.ts index e1088977f..56918e358 100644 --- a/server/models/pod/pod.ts +++ b/server/models/pod/pod.ts @@ -13,7 +13,7 @@ import { } from './pod-interface' let Pod: Sequelize.Model -let toFormatedJSON: PodMethods.ToFormatedJSON +let toFormattedJSON: PodMethods.ToFormattedJSON let countAll: PodMethods.CountAll let incrementScores: PodMethods.IncrementScores let list: PodMethods.List @@ -86,7 +86,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da updatePodsScore, removeAll ] - const instanceMethods = [ toFormatedJSON ] + const instanceMethods = [ toFormattedJSON ] addMethodsToModel(Pod, classMethods, instanceMethods) return Pod @@ -94,7 +94,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da // ------------------------------ METHODS ------------------------------ -toFormatedJSON = function (this: PodInstance) { +toFormattedJSON = function (this: PodInstance) { const json = { id: this.id, host: this.host, -- cgit v1.2.3