@dudousxd/nestjs-durable-store-typeorm 0.25.0 → 0.25.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
@@ -1140,6 +1140,17 @@ var TypeOrmStateStore = class {
1140
1140
  });
1141
1141
  return e ? fromRunEntity(e) : null;
1142
1142
  }
1143
+ async getRuns(runIds) {
1144
+ if (runIds.length === 0) return [];
1145
+ const rows = await this.runs().find({
1146
+ where: {
1147
+ id: (0, import_typeorm2.In)([
1148
+ ...new Set(runIds)
1149
+ ])
1150
+ }
1151
+ });
1152
+ return rows.map(fromRunEntity);
1153
+ }
1143
1154
  async deleteRun(runId) {
1144
1155
  await this.checkpoints().delete({
1145
1156
  runId