Skip to content

Commit

Permalink
Merge pull request #10 from skylab-tech/SCP-3-add-photo-uuid
Browse files Browse the repository at this point in the history
SCP-3-add-photo-uuid
  • Loading branch information
paulhklam1122 authored Mar 12, 2024
2 parents 505fccd + 79c280d commit 597bd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StudioClient/Photo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private async Task<dynamic> UploadPhoto(string photoPath, string modelName, long

var photoObject = new JObject
{
{ "name", photoBasename },
{ "name", $"{Guid.NewGuid()}{fileExtension}" },
{ "path", photoPath }
};
if (modelName == "job") photoObject["job_id"] = modelId; else photoObject["profile_id"] = modelId;
Expand Down

0 comments on commit 597bd01

Please sign in to comment.