fix(todo): add ReorderTasksDto to fix validation error on task reorder

The reorder endpoint used @Body('taskIds') without a DTO, which caused
"property taskIds should not exist" when the global ValidationPipe with
forbidNonWhitelisted rejected the request body.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-24 20:26:30 +01:00
parent 5b5849eaa4
commit d6eacc1c4b

View file

@ -98,10 +98,10 @@ function extractImports(filePath) {
// Match import ... from '@scope/package' and import '@scope/package'
// Also match dynamic imports and require
const patterns = [
/from\s+['"](@[^'"/]+\/[^'"/]+)/g,
/import\s*\(\s*['"](@[^'"/]+\/[^'"/]+)/g,
/import\s+['"](@[^'"/]+\/[^'"/]+)/g,
/require\s*\(\s*['"](@[^'"/]+\/[^'"/]+)/g,
new RegExp('from\\s+[\'"](@[^\'"/]+/[^\'"/]+)', 'g'),
new RegExp('import\\s*\\(\\s*[\'"](@[^\'"/]+/[^\'"/]+)', 'g'),
new RegExp('import\\s+[\'"](@[^\'"/]+/[^\'"/]+)', 'g'),
new RegExp('require\\s*\\(\\s*[\'"](@[^\'"/]+/[^\'"/]+)', 'g'),
];
for (const pattern of patterns) {
let match;