Moved token conversion so doc won't fail
This commit is contained in:
@@ -332,7 +332,7 @@ namespace Swarmops.Frontend.Socket
|
||||
{
|
||||
JObject json = new JObject();
|
||||
json["MessageType"] = "ProgressUpdate";
|
||||
json["Guid"] = guid;
|
||||
json["Guid"] = guid.Replace("-", "_"); // necessary to be a JS token
|
||||
json["Progress"] = progress;
|
||||
|
||||
FrontendLoop.BroadcastToOrganization(organization, json);
|
||||
|
||||
@@ -364,7 +364,7 @@ namespace Swarmops.Frontend.Automation
|
||||
JObject data = new JObject();
|
||||
data["ServerRequest"] = "ConvertPdf";
|
||||
data["PdfFiles"] = JArray.FromObject(pdfsForConversion.ToArray());
|
||||
data["Guid"] = (string) guid.Replace("-", "_"); // convert to token
|
||||
data["Guid"] = (string) guid;
|
||||
data["PersonId"] = authData.CurrentUser.Identity;
|
||||
data["OrganizationId"] = authData.CurrentOrganization.Identity;
|
||||
socket.Send(data.ToString());
|
||||
|
||||
Reference in New Issue
Block a user