Fix for UUID tweak

This commit is contained in:
Mashintime 2023-02-08 17:24:30 -05:00
parent 1b5f9f11a6
commit 5ef59d3563
2 changed files with 7 additions and 8 deletions

View file

@ -331,6 +331,12 @@ db.post({
document.getElementById('selectFilesButton').innerHTML = ``;
var uuid = uuidv4();
let uuidlast = uuid.lastIndexOf('-');
uuidlast +=1;
if (uuidlast > 0)
{
uuid = uuid.substring(uuidlast);
}
console.log(data_with_attachment)
let Data = {
command: "send_message",

View file

@ -543,14 +543,7 @@ exports.sendMessage = function(dxcallsign, mode, frames, data, checksum, uuid, c
//socketLog.info(data)
//shorten uuid
let uuidlast = uuid.lastIndexOf('-');
uuidlast +=1;
if (uuidlast > 0)
{
uuid = uuid.substr(uuidlast);
//console.log("UUID shortened to: ",uuid);
}
var datatype = "m"
data = datatype + split_char + command + split_char + checksum + split_char + uuid + split_char + data
//socketLog.info(data)