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,
|
DefaultGroup: schema.CG_DEFAULT,
|
||||||
UserID: userID,
|
UserID: userID,
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = cr.data.DB.Insert(defaultGroup)
|
_, err = cr.data.DB.Insert(defaultGroup)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()
|
err = errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
collectionGroup = defaultGroup
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue