From 64fd3da925725128be72d4ba09699efb17023935 Mon Sep 17 00:00:00 2001 From: speatzle Date: Wed, 19 Mar 2025 13:33:57 +0100 Subject: [PATCH] fix struct --- server/library.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/library.go b/server/library.go index d4fa229..d9a569c 100644 --- a/server/library.go +++ b/server/library.go @@ -20,12 +20,12 @@ type File struct { ID int `db:"id"` Path string `db:"path"` Size int64 `db:"size"` - OldSize int64 `db:"old_size"` + OldSize *int64 `db:"old_size"` Status constants.FileStatus `db:"status"` Health constants.FileHealth `db:"health"` Transcode constants.FileTranscode `db:"transcode"` MD5 []byte `db:"md5"` - OldMD5 []byte `db:"old_md5"` + OldMD5 *[]byte `db:"old_md5"` UpdatedAt time.Time `db:"updated_at"` }