Merge branch 'ai_work' into 'main'

fix AddCollectionDefaultGroup return Add ID

See merge request opensource/answer!86
This commit is contained in:
linkinstar 2022-10-19 09:02:58 +00:00
commit c8da6a3087
1 changed files with 1 additions and 1 deletions

View File

@ -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
}