Refactor code

pull/131/head
wenxu12345 3 years ago
parent da7d187612
commit fe285ecd6b

@ -60,7 +60,7 @@ func DeleteSingleFriendInfo(OwnerUserID, FriendUserID string) error {
if err != nil { if err != nil {
return err return err
} }
err = dbConn.Table("friend").Where("owner_user_id=? and friend_user_id=?", OwnerUserID, FriendUserID).Delete(Friend{}).Error err = dbConn.Table("friend").Where("owner_user_id=? and friend_user_id=?", OwnerUserID, FriendUserID).Delete(db.Friend{}).Error
return err return err
} }

Loading…
Cancel
Save