Skip to content

Commit

Permalink
Bumping version to 1.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Mar 17, 2019
1 parent 40c6590 commit 8a28d37
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 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.1.14 - 2019-03-17
## 1.1.15 - 2019-03-17
* Upgrade Raspbian

## 1.1.0 - 2019-01-20
Expand Down
6 changes: 3 additions & 3 deletions src/Client/Client.fs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ let fetchFirmware() = promise {
}


let uploadFile (fileName,token) = promise {
let uploadFile (fileName,userID) = promise {
let formData = Fable.Import.Browser.FormData.Create()
formData.append("file",fileName)

Expand All @@ -71,7 +71,7 @@ let uploadFile (fileName,token) = promise {
//HttpRequestHeaders.ContentType "multipart/form-data"
]
RequestProperties.Body (unbox formData) ]
let url = sprintf "api/upload/%s" token
let url = sprintf "api/upload/%s" userID
let! res = Fetch.fetch url props
let! txt = res.text()

Expand Down Expand Up @@ -159,7 +159,7 @@ let update (msg : Msg) (model : Model) : Model * Cmd<Msg> =
| None -> model, Cmd.none
| Some fileName ->
{ model with File = None; IsUploading = true; Message = "Upload started" },
Cmd.ofPromise uploadFile (fileName,"temp") FileUploaded UploadFailed
Cmd.ofPromise uploadFile (fileName,model.UserID) FileUploaded UploadFailed

| Err exn ->
{ model with Message = exn.Message }, Cmd.none //runIn (System.TimeSpan.FromSeconds 5.) Fetch Err
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.1.14"
let Version = "1.1.15"

let IsPrerelease = false

let Notes = """
# Release Notes
## 1.1.14 - 2019-03-17
## 1.1.15 - 2019-03-17
* Upgrade Raspbian
## 1.1.0 - 2019-01-20
Expand Down
10 changes: 6 additions & 4 deletions src/Server/Server.fs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ let mapYoutube (tag:Tag) = task {
| _ -> return tag
}

let uploadEndpoint (token:string) =
let uploadEndpoint (userID:string) =
pipeline {
set_header "Content-Type" "application/json"
plug (fun next ctx -> task {
Expand All @@ -114,7 +114,7 @@ let uploadEndpoint (token:string) =
Action = tagAction
Description = ""
LastVerified = DateTimeOffset.UtcNow
UserID = "temp"
UserID = userID
Object = "" }
let! _saved = AzureTable.saveTag tag
let! tag = mapBlobMusikTag tag
Expand Down Expand Up @@ -167,7 +167,7 @@ let nextFileEndpoint (userID,token) =

let! position = AzureTable.getPlayListPosition userID token
let position = position |> Option.map (fun p -> p.Position - 1) |> Option.defaultValue 0
let! _ = AzureTable.savePlayListPosition userID token position

let! tag =
match tag with
| Some t -> mapBlobMusikTag t
Expand All @@ -187,7 +187,9 @@ let nextFileEndpoint (userID,token) =
Object = tag.Object
Description = tag.Description
Action = TagActionForBox.GetFromTagAction(tag.Action,position) }


let! _ = AzureTable.savePlayListPosition userID token position

let txt = TagForBox.Encoder tag |> Encode.toString 0
return! setBodyFromString txt next ctx
})
Expand Down

0 comments on commit 8a28d37

Please sign in to comment.