提交 v1.3.0-beta2

This commit is contained in:
dushixiang
2022-10-25 21:12:59 +08:00
parent 23b38a152d
commit c2f9428ca0
17 changed files with 65 additions and 884 deletions

View File

@ -115,6 +115,6 @@ func (r commandRepository) FindAll(c context.Context) (o []model.Command, err er
}
func (r commandRepository) FindByUserId(c context.Context, userId string) (o []model.Command, err error) {
err = r.GetDB(c).Where("owner = ?", userId).First(&o).Error
err = r.GetDB(c).Where("owner = ?", userId).Find(&o).Error
return
}