working commit

This commit is contained in:
2026-02-20 19:08:26 +02:00
parent f973293315
commit 3220e2d78f
32 changed files with 195 additions and 213 deletions
+1 -2
View File
@@ -13,7 +13,6 @@ import (
"context"
"mstore/pkg/descr"
"mstore/pkg/uuid"
)
func (db *Database) InsertFile(ctx context.Context, file *descr.File) error {
@@ -28,7 +27,7 @@ func (db *Database) InsertFile(ctx context.Context, file *descr.File) error {
return err
}
func (db *Database) UpdateFileByID(ctx context.Context, fileID uuid.UUID, file *descr.File) error {
func (db *Database) UpdateFileByID(ctx context.Context, fileID uint64, file *descr.File) error {
var err error
request := `UPDATE files SET id = $1, collection = $2, name = $3, type = $4, checksum = $5,
size = $6, updated_at = $7, created_by = $8, updated_by = $9