X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Fmodels%2Fpod%2Fpod.ts;h=56918e358fb7d73f34ca0a16cfb71bf53ea82d8e;hb=0aef76c479bc7fc758e70e1cd478ade46761b51b;hp=e1088977f14bb503a9102a8cca5574b0a84c6bac;hpb=075f16caac5236cb04c98ae7b3a989766d764bb3;p=github%2FChocobozzz%2FPeerTube.git 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,