修改更新文件消息错误问题

This commit is contained in:
junleea 2025-03-29 16:10:34 +08:00
parent ae355b23ca
commit bde31d8768
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ func UpdateUserFile(userID int, fileAuthID int, fileAuthName string) error {
return errors.New("no permission")
}
fileAuth.UserFileName = fileAuthName
err := dao.UpdateFileAuthByID(userID, fileAuth)
err := dao.UpdateFileAuthByID(fileAuthID, fileAuth)
return err
}
func DeleteUserFile(userID, fileAuthID int) error {