Fixed the storage service not properly reading bytes out of the correct struct, and instead attempting to assert the struct as raw byte data

Signed-off-by: arzumify <jliwin98@danwin1210.de>
This commit is contained in:
Tracker-Friendly 2024-12-08 16:36:29 +00:00
parent 48547833e4
commit 6eeea11a75
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ func modifyFile(information library.ServiceInitializationInformation, message li
}
// Write the file
_, err = file.Write(message.Message.([]byte))
_, err = file.Write(message.Message.(nucleusLibrary.File).Bytes)
if err != nil {
respondError(err.Error(), information, true, message.ServiceID)
}