X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fsequelize.ts;fp=server%2Ftypes%2Fsequelize.ts;h=535113d01198b6fe63a1cb0c09dea7b7ea70a329;hb=16c016e8b1d5ca46343d3363f9a49e24c5d7c944;hp=9cd83612d0e8a8507aa656b7d2e91435b672edc9;hpb=9a320a06b663a2e02c3156a07135f75f9e987b11;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/sequelize.ts b/server/types/sequelize.ts index 9cd83612d..535113d01 100644 --- a/server/types/sequelize.ts +++ b/server/types/sequelize.ts @@ -1,4 +1,5 @@ -import { Model } from 'sequelize-typescript' +import { AttributesOnly } from '@shared/core-utils' +import { Model } from 'sequelize' // Thanks to sequelize-typescript: https://github.com/RobinBuschmann/sequelize-typescript @@ -9,7 +10,7 @@ export type Omit = { [P in Diff]: T[P] } export type RecursivePartial = { [P in keyof T]?: RecursivePartial } -export type FilteredModelAttributes> = RecursivePartial>> & { +export type FilteredModelAttributes> = Partial> & { id?: number | any createdAt?: Date | any updatedAt?: Date | any