| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| apiDataset | ||
| collection | ||
| data | ||
| file | ||
| folder | ||
| training | ||
| create.ts | ||
| createWithFiles.ts | ||
| delete.ts | ||
| detail.ts | ||
| exportAll.ts | ||
| getPermission.ts | ||
| list.ts | ||
| paths.ts | ||
| resumeInheritPermission.ts | ||
| searchTest.ts | ||
| update.ts |
The schema-detection aggregate in exportAll builds its $match from teamId (returned by authDataset as a string). find() casts the string to ObjectId, but aggregate() does not schema-cast $match values, so the aggregation matched zero documents. exportSchema became undefined, indexCount/hasMetadata fell back to 0/false, and the CSV header collapsed to q,a. Wrap teamId and dataset _ids in Types.ObjectId so the aggregate $match works. dataset _ids are already ObjectId from .lean(), so that wrap is defensive. Co-authored-by: Claude <noreply@anthropic.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| apiDataset | Loading commit data... | |
| collection | Loading commit data... | |
| data | Loading commit data... | |
| file | Loading commit data... | |
| folder | Loading commit data... | |
| training | Loading commit data... | |
| create.ts | Loading commit data... | |
| createWithFiles.ts | Loading commit data... | |
| delete.ts | Loading commit data... | |
| detail.ts | Loading commit data... | |
| exportAll.ts | Loading commit data... | |
| getPermission.ts | Loading commit data... | |
| list.ts | Loading commit data... | |
| paths.ts | Loading commit data... | |
| resumeInheritPermission.ts | Loading commit data... | |
| searchTest.ts | Loading commit data... | |
| update.ts | Loading commit data... |