diff --git a/Client/app/shared/route.resolver.ts b/Client/app/shared/route.resolver.ts index 6bbef56b..9b7e02c0 100644 --- a/Client/app/shared/route.resolver.ts +++ b/Client/app/shared/route.resolver.ts @@ -1,10 +1,10 @@ -import { Injectable } from '@angular/core'; +import { Injectable } from '@angular/core'; import { Resolve } from '@angular/router'; -import { SignalR, SignalRConnection } from 'ng2-signalr'; +import { SignalR, ISignalRConnection } from 'ng2-signalr'; @Injectable() -export class ConnectionResolver implements Resolve { +export class ConnectionResolver implements Resolve { constructor(private _signalR: SignalR) { } diff --git a/Startup.cs b/Startup.cs index d117fffd..54e456be 100644 --- a/Startup.cs +++ b/Startup.cs @@ -71,6 +71,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF app.UseStaticFiles(); + DbInitializer.Initialize(context); + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); @@ -78,8 +80,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF HotModuleReplacement = true }); - DbInitializer.Initialize(context); - app.UseSwagger(); // Enable middleware to serve swagger-ui (HTML, JS, CSS etc.), specifying the Swagger JSON endpoint. diff --git a/package.json b/package.json index a63bda10..3d0e18c9 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "isomorphic-fetch": "^2.2.1", "jquery": "^2.2.1", "json-loader": "^0.5.4", - "ng2-signalr": "2.0.4", "ngx-bootstrap": "^1.7.1", "node-sass": "^4.5.2", @@ -82,7 +81,6 @@ "codelyzer": "^3.0.0-beta.4", "jasmine-core": "^2.5.2", "jest": "^20.0.0", - "jest-preset-angular": "^2.0.1", - "tslint": "^4.5.1" + "jest-preset-angular": "^2.0.1" } }