Skip to content

Commit 2ef154b

Browse files
committed
Ensure precomputed is regenerated after unpublish.
1 parent ef81b29 commit 2ef154b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/models/reconstruction.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,9 @@ export class Reconstruction extends BaseModel {
12041204
await reconstruction.update({status: ReconstructionStatus.ApprovedAndReady}, {transaction});
12051205
}
12061206

1207+
// TODO Precomputed worker should periodically look for skeletons that are no longer part of the active
1208+
await Precomputed.destroy({where: {reconstructionId: reconstruction.id}});
1209+
12071210
promises = reconstruction.Tracings.map(async (t) => {
12081211
await SearchContent.destroy({where: {tracingId: t.id}, transaction});
12091212
});

0 commit comments

Comments
 (0)