@happyvertical/smrt-reports 0.55.9 → 0.55.11
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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/runtime-report.d.ts +4 -0
- package/dist/runtime-report.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +5 -5
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1965,7 +1965,9 @@ async function listRuntimeReports(options) {
|
|
|
1965
1965
|
return (await collectionFor(options.db)).list({
|
|
1966
1966
|
where: {
|
|
1967
1967
|
status: options.status ?? "active",
|
|
1968
|
-
...options.tenantId ? { tenantId: options.tenantId } : {}
|
|
1968
|
+
...options.tenantId ? { tenantId: options.tenantId } : {},
|
|
1969
|
+
...options.createdByUserId !== void 0 ? { createdByUserId: options.createdByUserId } : {},
|
|
1970
|
+
...options.specHash !== void 0 ? { specHash: options.specHash } : {}
|
|
1969
1971
|
},
|
|
1970
1972
|
orderBy: "created_at DESC",
|
|
1971
1973
|
limit: Math.min(Math.max(options.limit ?? 50, 1), 200)
|