mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-06 07:38:47 +01:00
fix: invalidate Muse receivers on company archive
This commit is contained in:
1 parent
6ae54c5cf0
commit
c6af01fcb4
1 file changed
+1
@@ -517,6 +517,7 @@ export function companyService(db: Db, _budgetHooks: BudgetServiceHooks = {}) {
|
||||
if (!wasAlreadyArchived) {
|
||||
// The separate archive entry shares update()'s agent-before-mirror order.
|
||||
await tx.select({ id: agents.id }).from(agents).where(eq(agents.companyId, id)).orderBy(agents.id).for("update");
|
||||
await prepareMuseReceiverAuthorityMutation(tx,{companyId:id});
|
||||
await notifyRunDispatch(tx, { companyId: id });
|
||||
await notifyGitHubCompanyChange(tx, id);
|
||||
await notifyDeferredExecutionEligibility(tx, { companyId: id });
|
||||
|
||||
Reference in new issue
Block a user