@mastra/mysql 0.13.3-alpha.0 → 0.14.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2339,6 +2339,10 @@ var DatasetsMySQL = class DatasetsMySQL extends DatasetsStorage {
|
|
|
2339
2339
|
const { page, perPage: perPageInput } = args.pagination;
|
|
2340
2340
|
const filterParts = [];
|
|
2341
2341
|
const filterArgs = [];
|
|
2342
|
+
if (args.filters?.datasetIds !== void 0) {
|
|
2343
|
+
filterParts.push(args.filters.datasetIds.length > 0 ? `\`id\` IN (${args.filters.datasetIds.map(() => "?").join(",")})` : "1 = 0");
|
|
2344
|
+
filterArgs.push(...args.filters.datasetIds);
|
|
2345
|
+
}
|
|
2342
2346
|
if (args.filters?.organizationId !== void 0) {
|
|
2343
2347
|
filterParts.push(`${quoteIdentifier("organizationId", "column name")} = ?`);
|
|
2344
2348
|
filterArgs.push(args.filters.organizationId);
|