aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/pod
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/pod')
-rw-r--r--server/models/pod/pod-interface.ts2
-rw-r--r--server/models/pod/pod.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/server/models/pod/pod-interface.ts b/server/models/pod/pod-interface.ts
index 01ccda64c..d88847c45 100644
--- a/server/models/pod/pod-interface.ts
+++ b/server/models/pod/pod-interface.ts
@@ -4,7 +4,7 @@ import * as Sequelize from 'sequelize'
4import { Pod as FormatedPod } from '../../../shared/models/pod.model' 4import { Pod as FormatedPod } from '../../../shared/models/pod.model'
5 5
6export namespace PodMethods { 6export namespace PodMethods {
7 export type ToFormatedJSON = () => FormatedPod 7 export type ToFormatedJSON = (this: PodInstance) => FormatedPod
8 8
9 export type CountAllCallback = (err: Error, total: number) => void 9 export type CountAllCallback = (err: Error, total: number) => void
10 export type CountAll = (callback) => void 10 export type CountAll = (callback) => void
diff --git a/server/models/pod/pod.ts b/server/models/pod/pod.ts
index 4c6e63024..4fe7fda1c 100644
--- a/server/models/pod/pod.ts
+++ b/server/models/pod/pod.ts
@@ -96,12 +96,12 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da
96 96
97// ------------------------------ METHODS ------------------------------ 97// ------------------------------ METHODS ------------------------------
98 98
99toFormatedJSON = function () { 99toFormatedJSON = function (this: PodInstance) {
100 const json = { 100 const json = {
101 id: this.id, 101 id: this.id,
102 host: this.host, 102 host: this.host,
103 email: this.email, 103 email: this.email,
104 score: this.score, 104 score: this.score as number,
105 createdAt: this.createdAt 105 createdAt: this.createdAt
106 } 106 }
107 107