From 6eeea11a751e51b053937541b9a58289ab45c4af Mon Sep 17 00:00:00 2001 From: arzumify Date: Sun, 8 Dec 2024 16:36:29 +0000 Subject: [PATCH] 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 --- services-src/storage/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services-src/storage/main.go b/services-src/storage/main.go index 97e9ce2..14eeff1 100644 --- a/services-src/storage/main.go +++ b/services-src/storage/main.go @@ -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) }