Knocks/BackEnd/Knoks.Operate/Stored Procedures/BO_RemoveUserFollow.sql

8 lines
218 B
Transact-SQL

CREATE PROCEDURE [dbo].[BO_RemoveUserFollow]
@userId int,
@followUserId int
AS
DELETE UserFollows where UserId = @userId and FollowUserId = @followUserId -- ignore errors
EXEC BO_GetUserFollows @userId
RETURN 0