Skip to content

Commit

Permalink
Bumping version to 1.5.12
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Aug 20, 2019
1 parent b4ecb83 commit c2c9f07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release Notes

## 1.5.11 - 2019-08-20
## 1.5.12 - 2019-08-20
* Sonos support

## 1.4.22 - 2019-08-20
Expand Down
4 changes: 2 additions & 2 deletions src/Client/ReleaseNotes.fs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module internal ReleaseNotes

let Version = "1.5.11"
let Version = "1.5.12"

let IsPrerelease = false

let Notes = """
# Release Notes
## 1.5.11 - 2019-08-20
## 1.5.12 - 2019-08-20
* Sonos support
## 1.4.22 - 2019-08-20
Expand Down
6 changes: 2 additions & 4 deletions src/Server/Server.fs
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,10 @@ let userTagsEndPoint userID =

let volumeUpEndpoint userID =
pipeline {
set_header "Content-Type" "application/json"
plug (fun next ctx -> task {
match! AzureTable.getUser userID with
| None ->
return! Response.notFound ctx userID
return! Response.forbidden ctx userID
| Some user ->
let logger = ctx.GetLogger "VolumeUp"
do! Sonos.volumeUp logger user.SonosAccessToken Sonos.group
Expand All @@ -262,11 +261,10 @@ let volumeUpEndpoint userID =

let volumeDownEndpoint userID =
pipeline {
set_header "Content-Type" "application/json"
plug (fun next ctx -> task {
match! AzureTable.getUser userID with
| None ->
return! Response.notFound ctx userID
return! Response.forbidden ctx userID
| Some user ->
let logger = ctx.GetLogger "VolumeDown"
do! Sonos.volumeDown logger user.SonosAccessToken Sonos.group
Expand Down

0 comments on commit c2c9f07

Please sign in to comment.