| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| data | ||
| public | ||
| scripts | ||
| src | ||
| test | ||
| .env.template | ||
| Dockerfile | ||
| next-i18next.config.js | ||
| next.config.ts | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.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 |
|---|---|---|
| .. | ||
| data | Loading commit data... | |
| public | Loading commit data... | |
| scripts | Loading commit data... | |
| src | Loading commit data... | |
| test | Loading commit data... | |
| .env.template | Loading commit data... | |
| Dockerfile | Loading commit data... | |
| next-i18next.config.js | Loading commit data... | |
| next.config.ts | Loading commit data... | |
| package.json | Loading commit data... | |
| tsconfig.json | Loading commit data... | |
| vitest.config.ts | Loading commit data... |