File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
var configTestEnv = {
2
- "authServiceHost" : "https ://auth-service-prd.herokuapp.com " ,
3
- "userServiceHost" : "https ://user-service-prd01.herokuapp.com " ,
4
- "productServiceHost" : "https ://product-service-prd.herokuapp.com " ,
5
- "notificationServiceHost" : "https ://notification-service-prd.herokuapp.com "
2
+ "authServiceHost" : "http ://localhost:8081 " ,
3
+ "userServiceHost" : "http ://localhost:8082 " ,
4
+ "productServiceHost" : "http ://localhost:8083 " ,
5
+ "notificationServiceHost" : "http ://localhost:8084 "
6
6
}
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ class HomeController extends BaseController {
31
31
. then ( data => {
32
32
if ( data [ "status" ] == "success" ) {
33
33
this . setAuthTokenInContext ( data [ "token" ] )
34
+ this . fetchUserData ( ) ;
35
+ this . fetchUnreadCountForNotifications ( "Opioner | Home" ) ;
36
+ this . loadAllPublicFeeds ( ) ;
34
37
}
35
38
else {
36
39
window . location . href = "index.html"
@@ -866,10 +869,6 @@ var homeController = new HomeController();
866
869
867
870
function initialLoadForFeedPage ( ) {
868
871
869
- homeController . fetchUserData ( ) ;
870
- homeController . fetchUnreadCountForNotifications ( "Opioner | Home" ) ;
871
- homeController . loadAllPublicFeeds ( )
872
-
873
872
// infinite scrolling loading 10 items at a time, each time user reaches the end of page
874
873
window . addEventListener ( 'scroll' , ( ) => {
875
874
You can’t perform that action at this time.
0 commit comments