Skip to content

Commit

Permalink
Merge pull request #39 from GoogolApp/fix-compilation-errors-on-master
Browse files Browse the repository at this point in the history
fix compilation errors on dev
  • Loading branch information
matheusps committed Jun 29, 2018
2 parents 9285467 + 07bf97b commit 044b6db
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/_config/url.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const AppUrl = {
root: 'https://googol-api.herokuapp.com/api'
//root: 'http://localhost:4040/api'
};
};
8 changes: 4 additions & 4 deletions src/_services/bar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs/observable';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';

import { AppUrl } from '../_config/url.config';
Expand All @@ -16,7 +16,7 @@ export class BarService {

/**
* Create a new bar
* @param bar
* @param bar
*/
create(bar: Bar): Observable<Bar> {

Expand All @@ -35,7 +35,7 @@ export class BarService {

/**
* Get one bar with a given id
* @param id
* @param id
*/
getOne(id: string) : Observable<Bar> {
return this.http.get<Bar>(this.url + '/' + id, this.httpOptions)
Expand Down Expand Up @@ -72,4 +72,4 @@ export class BarService {
});
}

}
}
10 changes: 5 additions & 5 deletions src/_services/owner.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs/observable';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';

import { AppUrl } from '../_config/url.config';
Expand All @@ -17,7 +17,7 @@ export class OwnerService {

/**
* Create a new owner
* @param owner
* @param owner
*/
create(owner: Owner): Observable<Owner> {

Expand All @@ -34,7 +34,7 @@ export class OwnerService {

/**
* Get a single owner by a given id
* @param id
* @param id
*/
getOne(id: string) : Observable<Owner> {
return this.http.get<Owner>(this.url + '/' + id, this.httpOptions)
Expand All @@ -46,10 +46,10 @@ export class OwnerService {
putBar(id: string, bar: Bar){
return this.http.put<Owner>(this.url + '/' + id + '/mybar', bar, this.httpOptions)
.map(
owner => {
owner => {
return owner;
}
)
}

}
}
7 changes: 3 additions & 4 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { SignInPage } from '../pages/Public/signin/signin';
import { SignUpPage } from '../pages/Public/signup/signup';

//Common
import { LocationModal } from '../pages/Common/location-modal/location-modal';
import { LocationModal } from '../pages/Common/location-modal/location-modal';

//User
import { HomePage } from '../pages/User/home/home';
Expand Down Expand Up @@ -91,8 +91,7 @@ import { ClaimBarPage } from '../pages/Enterprise/claim-bar/claim-bar';
MyBarPage,
PromotionsPage,
AddPromotionModal,
refineEnterprise
ClaimBarPage
ClaimBarPage,
FilterMatchesModal
],
imports: [
Expand Down Expand Up @@ -134,7 +133,7 @@ import { ClaimBarPage } from '../pages/Enterprise/claim-bar/claim-bar';
MyBarPage,
PromotionsPage,
AddPromotionModal,
ClaimBarPage
ClaimBarPage,
FilterMatchesModal
],
providers: [
Expand Down

0 comments on commit 044b6db

Please sign in to comment.