Skip to content

Commit

Permalink
Updated clarity to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakMukhopadhyay committed Jan 16, 2020
1 parent 8b72fa4 commit 283b698
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"@bugsnag/js": "^6.5.0",
"@bugsnag/plugin-angular": "^6.5.0",
"@bugsnag/plugin-express": "^6.5.1",
"@clr/angular": "^1.0.4",
"@clr/icons": "^1.0.4",
"@clr/ui": "^1.0.4",
"@clr/angular": "^2.3.5",
"@clr/icons": "^2.3.5",
"@clr/ui": "^2.3.5",
"@webcomponents/custom-elements": "^1.1.2",
"angular-highcharts": "^8.0.3",
"body-parser": "^1.19.0",
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/factions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class FactionsService {

getFactionsBegins(page: string, name: string): Observable<EBGSFactionsWOHistory> {
return this.http.get<EBGSFactionsWOHistory>('/frontend/factions', {
params: new HttpParams({ encoder: new CustomEncoder() }).set('page', page).set('beginsWith', name)
params: new HttpParams({ encoder: new CustomEncoder() }).set('page', page + 1).set('beginsWith', name)
});
}

Expand Down Expand Up @@ -41,7 +41,7 @@ export class FactionsService {

getHistoryAdmin(page: string, id: string): Observable<EBGSFactionHistoryPaginate> {
return this.http.get<EBGSFactionHistoryPaginate>('/frontend/factionhistoryadmin', {
params: new HttpParams().set('id', id).set('page', page)
params: new HttpParams().set('id', id).set('page', page + 1)
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/services/stations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class StationsService {

getStationsBegins(page: string, name: string): Observable<EBGSStationsWOHistory> {
return this.http.get<EBGSStationsWOHistory>('/frontend/stations', {
params: new HttpParams({ encoder: new CustomEncoder() }).set('page', page).set('beginsWith', name)
params: new HttpParams({ encoder: new CustomEncoder() }).set('page', page + 1).set('beginsWith', name)
});
}

Expand Down Expand Up @@ -41,7 +41,7 @@ export class StationsService {

getHistoryAdmin(page: string, id: string): Observable<EBGSStationHistory> {
return this.http.get<EBGSStationHistory>('/frontend/stationhistoryadmin', {
params: new HttpParams().set('id', id).set('page', page)
params: new HttpParams().set('id', id).set('page', page + 1)
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/services/systems.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class SystemsService {

getSystemsBegins(page: string, name: string): Observable<EBGSSystemsWOHistory> {
return this.http.get<EBGSSystemsWOHistory>('/frontend/systems', {
params: new HttpParams({ encoder: new CustomEncoder() }).set('page', page).set('beginsWith', name)
params: new HttpParams({ encoder: new CustomEncoder() }).set('page', page + 1).set('beginsWith', name)
});
}

Expand Down Expand Up @@ -41,7 +41,7 @@ export class SystemsService {

getHistoryAdmin(page: string, id: string): Observable<EBGSSystemHistory> {
return this.http.get<EBGSSystemHistory>('/frontend/systemhistoryadmin', {
params: new HttpParams().set('id', id).set('page', page)
params: new HttpParams().set('id', id).set('page', page + 1)
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/services/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class UsersService {

getUsersBegins(page: string, user: string): Observable<EBGSUsers> {
return this.http.get<EBGSUsers>('/frontend/users', {
params: new HttpParams({ encoder: new CustomEncoder() }).set('page', page).set('beginsWith', user)
params: new HttpParams({ encoder: new CustomEncoder() }).set('page', page + 1).set('beginsWith', user)
}).pipe(map((users: EBGSUsers): EBGSUsers => {
users.docs.forEach((singleUser, i, allUsers) => {
allUsers[i].patronage.since = new Date(singleUser.patronage.since);
Expand Down

0 comments on commit 283b698

Please sign in to comment.