[WEB-2818] chore: project navigation items code refactor (#6170)
* chore: project navigation items code refactor * fix: build error * chore: code refactor * chore: code refactor
This commit is contained in:
parent
a85e592ada
commit
5c907db0e2
6 changed files with 190 additions and 122 deletions
|
|
@ -150,7 +150,7 @@ export const syncIssuesWithDeletedModules = async (deletedModuleIds: string[]) =
|
|||
return;
|
||||
}
|
||||
|
||||
const issues = await persistence.getIssues("", "", { modules: deletedModuleIds.join(","), cursor: "10000:0:0" }, {});
|
||||
const issues = await persistence.getIssues("", "", { module: deletedModuleIds.join(","), cursor: "10000:0:0" }, {});
|
||||
if (issues?.results && Array.isArray(issues.results)) {
|
||||
const promises = issues.results.map(async (issue: TIssue) => {
|
||||
const updatedIssue = {
|
||||
|
|
@ -177,7 +177,7 @@ export const syncIssuesWithDeletedCycles = async (deletedCycleIds: string[]) =>
|
|||
return;
|
||||
}
|
||||
|
||||
const issues = await persistence.getIssues("", "", { cycles: deletedCycleIds.join(","), cursor: "10000:0:0" }, {});
|
||||
const issues = await persistence.getIssues("", "", { cycle: deletedCycleIds.join(","), cursor: "10000:0:0" }, {});
|
||||
if (issues?.results && Array.isArray(issues.results)) {
|
||||
const promises = issues.results.map(async (issue: TIssue) => {
|
||||
const updatedIssue = {
|
||||
|
|
@ -204,7 +204,7 @@ export const syncIssuesWithDeletedStates = async (deletedStateIds: string[]) =>
|
|||
return;
|
||||
}
|
||||
|
||||
const issues = await persistence.getIssues("", "", { states: deletedStateIds.join(","), cursor: "10000:0:0" }, {});
|
||||
const issues = await persistence.getIssues("", "", { state: deletedStateIds.join(","), cursor: "10000:0:0" }, {});
|
||||
if (issues?.results && Array.isArray(issues.results)) {
|
||||
const promises = issues.results.map(async (issue: TIssue) => {
|
||||
const updatedIssue = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue