Skip to content

Commit

Permalink
Use job, path and name for photo uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
kev-le committed Mar 8, 2024
1 parent 089d177 commit 9d0aa83
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 9d0aa83

Please sign in to comment.