Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Hotfix for history not being filtered properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Gullmark committed Mar 19, 2019
1 parent c6808ca commit 256a244
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.9.33] - 2019-03-19
###
- Hotfix for history not being filtered properly in the latest release

## [0.9.32] - 2019-03-19
### Fixed
- Fixed a bug where the player-list was not scrollable (guilds had problems viewing all members)
Expand Down
2 changes: 1 addition & 1 deletion ExilenceClient/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exilence",
"version": "0.9.32",
"version": "0.9.33",
"author": {
"name": "Viktor Gullmark",
"email": "[email protected]"
Expand Down
8 changes: 4 additions & 4 deletions ExilenceClient/src/app/shared/providers/party.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ export class PartyService implements OnDestroy {
}

public updatePlayer(player: Player, reason: string = null) {
const oneDayAgo = (Date.now() - (1 * 60 * 60 * 1000));
const oneDayAgoMoment = moment().utc().subtract(1, 'hours');
const oneDayAgo = (Date.now() - (12 * 60 * 60 * 1000));
const oneDayAgoMoment = moment().utc().subtract(12, 'hours');
this.updateInProgress = true;

const objToSend = Object.assign({}, player);
Expand Down Expand Up @@ -648,8 +648,8 @@ export class PartyService implements OnDestroy {
this.party.players.push(player);
this.party.name = partyName;
if (this._hubConnection) {
const oneDayAgo = (Date.now() - (1 * 60 * 60 * 1000));
const oneDayAgoMoment = moment().utc().subtract(1, 'hours');
const oneDayAgo = (Date.now() - (12 * 60 * 60 * 1000));
const oneDayAgoMoment = moment().utc().subtract(12, 'hours');
playerToSend.netWorthSnapshots = HistoryHelper.filterNetworth(playerToSend.netWorthSnapshots, oneDayAgoMoment);
playerToSend.pastAreas = HistoryHelper.filterAreas(playerToSend.pastAreas, oneDayAgo);

Expand Down

0 comments on commit 256a244

Please sign in to comment.