示例#1
0
        public async Task <IActionResult> GetPotentialDuplicates(
            string projectId, int maxInList, int maxLists, string userId)
        {
            if (!await _permissionService.HasProjectPermission(HttpContext, Permission.MergeAndCharSet))
            {
                return(Forbid());
            }

            await _mergeService.UpdateMergeBlacklist(projectId);

            return(Ok(
                       await _mergeService.GetPotentialDuplicates(projectId, maxInList, maxLists, userId)));
        }