]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/application/application.ts
Upgrade sequelize
[github/Chocobozzz/PeerTube.git] / server / models / application / application.ts
index 854a5fb368550b4744fa194637c9f1631f1ab2a8..a02208b4e13b893fd07ecd11d1678a599f144cc2 100644 (file)
@@ -1,14 +1,14 @@
 import { AllowNull, Column, Default, DefaultScope, HasOne, IsInt, Model, Table } from 'sequelize-typescript'
 import { AccountModel } from '../account/account'
 
-@DefaultScope({
+@DefaultScope(() => ({
   include: [
     {
-      model: () => AccountModel,
+      model: AccountModel,
       required: true
     }
   ]
-})
+}))
 @Table({
   tableName: 'application'
 })