aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-16 19:19:56 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-16 19:19:56 +0100
commit4793c343fd3cde3c6282ed0fb38e039b4276de0e (patch)
tree566856a8d0bee0ee06e60c5e3bf6b998135a078a /server/models
parent3266ad7cf8ff10d0fdae456196eff1653cc7ac21 (diff)
downloadPeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.tar.gz
PeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.tar.zst
PeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.zip
Add email to pods
Diffstat (limited to 'server/models')
-rw-r--r--server/models/pod.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/models/pod.js b/server/models/pod.js
index b3c6db8e8..6ae4b0999 100644
--- a/server/models/pod.js
+++ b/server/models/pod.js
@@ -32,6 +32,10 @@ module.exports = function (sequelize, DataTypes) {
32 isInt: true, 32 isInt: true,
33 max: constants.FRIEND_SCORE.MAX 33 max: constants.FRIEND_SCORE.MAX
34 } 34 }
35 },
36 email: {
37 type: DataTypes.STRING(400),
38 allowNull: false
35 } 39 }
36 }, 40 },
37 { 41 {
@@ -71,6 +75,7 @@ function toFormatedJSON () {
71 const json = { 75 const json = {
72 id: this.id, 76 id: this.id,
73 host: this.host, 77 host: this.host,
78 email: this.email,
74 score: this.score, 79 score: this.score,
75 createdAt: this.createdAt 80 createdAt: this.createdAt
76 } 81 }