]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/server/server.ts
Merge branch 'master' into develop
[github/Chocobozzz/PeerTube.git] / server / models / server / server.ts
index 3b6759b5c44609e5b65b3413db46f789058e0242..8b07115f1f810a43c0403f7ef7b75b3702ff64a0 100644 (file)
@@ -51,6 +51,16 @@ export class ServerModel extends Model<ServerModel> {
   })
   BlockedByAccounts: ServerBlocklistModel[]
 
+  static load (id: number): Bluebird<MServer> {
+    const query = {
+      where: {
+        id
+      }
+    }
+
+    return ServerModel.findOne(query)
+  }
+
   static loadByHost (host: string): Bluebird<MServer> {
     const query = {
       where: {