mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-02-24 23:13:53 +08:00
pass encrypted field in server sside copy
This commit is contained in:
parent
72a4ceecd0
commit
370d55508e
1 changed files with 1 additions and 0 deletions
|
@ -404,6 +404,7 @@ func (fs *FileService) CopyFile(c *gin.Context) (*schemas.FileOut, *types.AppErr
|
||||||
dbFile.Status = "active"
|
dbFile.Status = "active"
|
||||||
dbFile.ParentID = dest.ID
|
dbFile.ParentID = dest.ID
|
||||||
dbFile.ChannelID = &file.ChannelID
|
dbFile.ChannelID = &file.ChannelID
|
||||||
|
dbFile.Encrypted = file.Encrypted
|
||||||
|
|
||||||
if err := fs.Db.Create(&dbFile).Error; err != nil {
|
if err := fs.Db.Create(&dbFile).Error; err != nil {
|
||||||
return nil, fs.logAndReturn(copyFileContext, err, http.StatusInternalServerError)
|
return nil, fs.logAndReturn(copyFileContext, err, http.StatusInternalServerError)
|
||||||
|
|
Loading…
Reference in a new issue