Skip to content

Commit

Permalink
feat(#88): Version for online server
Browse files Browse the repository at this point in the history
  • Loading branch information
AudreyLR committed Jul 17, 2018
1 parent 680a470 commit 80f67c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Survi.Prevention.ServiceLayer/Services/PictureService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public Guid UploadFileBase64(PictureForWeb data)

var encodedPicture = DecodeBase64Picture(data.Picture); //Bae64UrlEncoder.DecodeBytes(data.Picture);
picture.Data = encodedPicture;
Context.SaveChanges();
picture.SketchJson = data.SketchJson;

Context.SaveChanges();
return picture.Id;
}

Expand Down
2 changes: 1 addition & 1 deletion Survi.Prevention.WebApi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"ConnectionStrings": {
"SurviPreventionDatabase": "Server=cadevspreventionpg.ad.cauca.ca;Port=5432;Database=survi_prevention;User Id=admin;Password=cauca;"
"SurviPreventionDatabase": "Server=159.89.127.32;Port=5432;Database=cauca;User Id=postgres;Password=caucadb;"
},
"APIConfig": {
"Issuer": "http://www.cauca.ca/",
Expand Down
2 changes: 1 addition & 1 deletion Survi.Prevention.WebApi/hosting.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"server.urls": "http://*:5555"
"server.urls": "http://*:5556"
}

0 comments on commit 80f67c4

Please sign in to comment.