@dudousxd/nestjs-durable-store-mikro-orm 0.33.0 → 0.33.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.cjs CHANGED
@@ -1155,6 +1155,17 @@ var MikroOrmStateStore = class _MikroOrmStateStore {
1155
1155
  });
1156
1156
  return entity ? fromRunEntity(entity) : null;
1157
1157
  }
1158
+ async getRuns(runIds) {
1159
+ if (runIds.length === 0) return [];
1160
+ const rows = await this.fork().find(WorkflowRunEntity, {
1161
+ id: {
1162
+ $in: [
1163
+ ...new Set(runIds)
1164
+ ]
1165
+ }
1166
+ });
1167
+ return rows.map(fromRunEntity);
1168
+ }
1158
1169
  async deleteRun(runId) {
1159
1170
  const em = this.fork();
1160
1171
  await em.nativeDelete(StepCheckpointEntity, {