X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo.ts;h=78119f51629a36373082806361c4ad7380157323;hb=75d612ce3ca9d6f69fe8e4e83dc3070d9ab56615;hp=2234664f465f1d0a318299cc5507e42a8313cb70;hpb=69f616ab3aeefd6ce330600604df90f2f48bfe3b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video.ts b/server/models/video.ts index 2234664f4..78119f516 100644 --- a/server/models/video.ts +++ b/server/models/video.ts @@ -68,8 +68,8 @@ let loadAndPopulateAuthor: VideoMethods.LoadAndPopulateAuthor let loadAndPopulateAuthorAndPodAndTags: VideoMethods.LoadAndPopulateAuthorAndPodAndTags let searchAndPopulateAuthorAndPodAndTags: VideoMethods.SearchAndPopulateAuthorAndPodAndTags -export default function (sequelize, DataTypes) { - Video = sequelize.define('Video', +export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) { + Video = sequelize.define('Video', { id: { type: DataTypes.UUID,