fix AddCollectionDefaultGroup return Add ID

This commit is contained in:
aichy126 2022-10-19 16:56:22 +08:00
parent 12aca525d6
commit d1becf0ffa
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
}