mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 06:19:41 +02:00
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:
parent
5b5849eaa4
commit
d6eacc1c4b
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue