Feat: after uploading finished hook
This commit is contained in:
@@ -19,6 +19,6 @@ type Folder struct {
|
||||
// GetFolderByPath 根据绝对路径和UID查找目录
|
||||
func GetFolderByPath(path string, uid uint) (Folder, error) {
|
||||
var folder Folder
|
||||
result := DB.Where("owner = ? AND position_absolute = ?", uid, path).Find(&folder)
|
||||
result := DB.Where("owner_id = ? AND position_absolute = ?", uid, path).Find(&folder)
|
||||
return folder, result.Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user