aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/pod.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 17:35:32 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 17:35:32 +0200
commit127944aacb52721877449a1f202dc0add866ef39 (patch)
tree73ac935c7dfc73dca92d15ed52266e40ba9af57a /server/models/pod.ts
parent294f80f21e8a77d25f6fb5f0f26887fb4618ee2e (diff)
downloadPeerTube-127944aacb52721877449a1f202dc0add866ef39.tar.gz
PeerTube-127944aacb52721877449a1f202dc0add866ef39.tar.zst
PeerTube-127944aacb52721877449a1f202dc0add866ef39.zip
Better models define typing
Diffstat (limited to 'server/models/pod.ts')
-rw-r--r--server/models/pod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/pod.ts b/server/models/pod.ts
index 107744c43..fef9d4da6 100644
--- a/server/models/pod.ts
+++ b/server/models/pod.ts
@@ -27,8 +27,8 @@ let loadByHost: PodMethods.LoadByHost
27let removeAll: PodMethods.RemoveAll 27let removeAll: PodMethods.RemoveAll
28let updatePodsScore: PodMethods.UpdatePodsScore 28let updatePodsScore: PodMethods.UpdatePodsScore
29 29
30export default function (sequelize, DataTypes) { 30export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) {
31 Pod = sequelize.define('Pod', 31 Pod = sequelize.define<PodInstance, PodAttributes>('Pod',
32 { 32 {
33 host: { 33 host: {
34 type: DataTypes.STRING, 34 type: DataTypes.STRING,