Refactor code

pull/131/head
wenxu12345 3 years ago
parent bc0c5d4fcb
commit d80a669515

@ -41,7 +41,7 @@ func RemoveBlackList(ownerUserID, blockUserID string) error {
return err
}
black := db.Black{OwnerUserID: ownerUserID, BlockUserID: blockUserID}
return utils.Wrap(dbConn.Delete(&black).Error, "RemoveBlackList failed")
return utils.Wrap(dbConn.Table("blacks").Delete(&black).Error, "RemoveBlackList failed")
}
func GetBlackListByUserID(ownerUserID string) ([]db.Black, error) {

Loading…
Cancel
Save