Refactor code

This commit is contained in:
wenxu12345 2021-12-31 10:45:11 +08:00
parent fe285ecd6b
commit 1290bc8cc9

View File

@ -40,7 +40,7 @@ func RemoveBlackList(ownerUserID, blockUserID string) error {
return err
}
err = dbConn.Table("user_black_list").Where("owner_user_id=? and block_user_id=?", ownerUserID, blockUserID).Delete(&Black{}).Error
err = dbConn.Table("user_black_list").Where("owner_user_id=? and block_user_id=?", ownerUserID, blockUserID).Delete(&db.Black{}).Error
return err
}