]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/pod/pod-interface.ts
Don't cache torrent files
[github/Chocobozzz/PeerTube.git] / server / models / pod / pod-interface.ts
index 340d4f1a784cbe0791cdfbc1a364891940147b05..fc763acacb7a139da30d575a540b87065271f9e2 100644 (file)
@@ -2,10 +2,10 @@ import * as Sequelize from 'sequelize'
 import * as Promise from 'bluebird'
 
 // Don't use barrel, import just what we need
-import { Pod as FormatedPod } from '../../../shared/models/pods/pod.model'
+import { Pod as FormattedPod } from '../../../shared/models/pods/pod.model'
 
 export namespace PodMethods {
-  export type ToFormatedJSON = (this: PodInstance) => FormatedPod
+  export type ToFormattedJSON = (this: PodInstance) => FormattedPod
 
   export type CountAll = () => Promise<number>
 
@@ -42,6 +42,7 @@ export interface PodClass {
 }
 
 export interface PodAttributes {
+  id?: number
   host?: string
   publicKey?: string
   score?: number | Sequelize.literal // Sequelize literal for 'score +' + value
@@ -49,11 +50,10 @@ export interface PodAttributes {
 }
 
 export interface PodInstance extends PodClass, PodAttributes, Sequelize.Instance<PodAttributes> {
-  id: number
   createdAt: Date
   updatedAt: Date
 
-  toFormatedJSON: PodMethods.ToFormatedJSON,
+  toFormattedJSON: PodMethods.ToFormattedJSON,
 }
 
 export interface PodModel extends PodClass, Sequelize.Model<PodInstance, PodAttributes> {}