예제 #1
0
        public async Task <ReactionShort> RemoveAsync(string publicationId, string userId)
        {
            var result = await reactionsApi.DeleteByAuthorAsync(
                KeysBuilder.PublicationReactionsKey(publicationId),
                userId);

            return(ToReactionShort(result, null));
        }
예제 #2
0
 public async Task RemoveReactionAsync(string publicationId, string author)
 {
     await reactionsApi.DeleteByAuthorAsync($"publication_{publicationId}", author);
 }