scripts/api/article-duplicate.tsx
Function duplicateItems
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function duplicateItems(items: Array<IArticle>, destination: ISendToDestination): Promise<Array<IArticle>> {
return Promise.all(
items.map((item) => {
const payload = (() => {
if (destination.type === 'personal-space') {