Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2322/head
zouap 3 years ago
parent
commit
fbbea0c3ec
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/dataset.go

+ 1
- 0
models/dataset.go View File

@@ -460,4 +460,5 @@ func GetCollaboratorDatasetIdsByUserID(userID int64) []int64 {
_ = x.Table("dataset").Join("INNER", "collaboration", "dataset.repo_id = collaboration.repo_id and collaboration.mode>0 and collaboration.user_id=?", userID). _ = x.Table("dataset").Join("INNER", "collaboration", "dataset.repo_id = collaboration.repo_id and collaboration.mode>0 and collaboration.user_id=?", userID).
Cols("dataset.id").Find(&datasets) Cols("dataset.id").Find(&datasets)
return datasets return datasets

} }

Loading…
Cancel
Save