Skip to content

Commit

Permalink
Merge pull request #47 from Brixel/feature/#32
Browse files Browse the repository at this point in the history
feat: update state data
  • Loading branch information
BerendWouters authored Jul 18, 2023
2 parents ab584a3 + ae08092 commit 63381db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions BrixelAPI.SpaceAPI/Domain/SpaceStateAggregate/SpaceState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ public static SpaceState GetConfiguredSpaceAPI()
Contact = new Contact
{
Email = "[email protected]",
Irc = "irc://irc.freenode.net/brixel",
Ml = "[email protected]",
Twitter = "@hs_hasselt",
Facebook = "https://facebook.com/Brixel.Hasselt",
Mastodon = "@[email protected]",
Foursquare = "https://foursquare.com/v/hackerspace-brixel/54284e28498e0b0d254fa426"
},
Projects = new List<string>()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task<GetFullStatusResponse> Handle(GetFullStatusRequest request, Ca
var lastState = await _spaceStateRepository.GetLastLogAsync();

state.State.Open = lastState.IsOpen;
state.State.Lastchange = (int)lastState.ChangedAtDateTime
state.State.Lastchange = lastState.ChangedAtDateTime
.ToUniversalTime()
.Subtract(new DateTime(1970, 1, 1)).TotalSeconds;

Expand Down

0 comments on commit 63381db

Please sign in to comment.