mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-09-07 15:05:33 +08:00
fix: multiple move files
This commit is contained in:
parent
7cd8aacf96
commit
b82dac8820
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ func (fs *FileService) MoveFiles(userId int64, payload *schemas.FileOperation) (
|
|||
items := pgtype.Array[string]{
|
||||
Elements: payload.Files,
|
||||
Valid: true,
|
||||
Dims: []pgtype.ArrayDimension{{Length: 1, LowerBound: 1}},
|
||||
Dims: []pgtype.ArrayDimension{{Length: int32(len(payload.Files)), LowerBound: 1}},
|
||||
}
|
||||
|
||||
if err := fs.db.Exec("select * from teldrive.move_items(? , ? , ?)", items, payload.Destination, userId).Error; err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue