Skip to content

Commit

Permalink
Merge pull request #9 from skylab-tech/SCD-2-add-path-to-photo-object
Browse files Browse the repository at this point in the history
Use job, path and name for photo uniqueness
  • Loading branch information
kev-le authored Mar 8, 2024
2 parents 089d177 + 9d0aa83 commit 505fccd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions StudioClient/Photo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ private async Task<dynamic> UploadPhoto(string photoPath, string modelName, long
var photoObject = new JObject
{
{ "name", photoBasename },
{ "path", photoPath }
};
if (modelName == "job") photoObject["job_id"] = modelId; else photoObject["profile_id"] = modelId;

Expand Down

0 comments on commit 505fccd

Please sign in to comment.