right type used
This commit is contained in:
+2
-2
@@ -12,8 +12,8 @@ package maindb
|
||||
import (
|
||||
"context"
|
||||
|
||||
"mstore/pkg/auxuuid"
|
||||
"mstore/pkg/descr"
|
||||
"mstore/pkg/uuid"
|
||||
)
|
||||
|
||||
func (db *Database) InsertFile(ctx context.Context, file *descr.File) error {
|
||||
@@ -28,7 +28,7 @@ func (db *Database) InsertFile(ctx context.Context, file *descr.File) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (db *Database) UpdateFileByID(ctx context.Context, fileID auxuuid.UUID, file *descr.File) error {
|
||||
func (db *Database) UpdateFileByID(ctx context.Context, fileID uuid.UUID, 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
|
||||
|
||||
Reference in New Issue
Block a user