mirror of https://gitee.com/answerdev/answer.git
Merge branch 'ai_work' into 'main'
fix AddCollectionDefaultGroup return Add ID See merge request opensource/answer!86
This commit is contained in:
commit
c8da6a3087
|
@ -40,12 +40,12 @@ func (cr *collectionGroupRepo) AddCollectionDefaultGroup(ctx context.Context, us
|
|||
DefaultGroup: schema.CG_DEFAULT,
|
||||
UserID: userID,
|
||||
}
|
||||
|
||||
_, err = cr.data.DB.Insert(defaultGroup)
|
||||
if err != nil {
|
||||
err = errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()
|
||||
return
|
||||
}
|
||||
collectionGroup = defaultGroup
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue