commit show calenda
This commit is contained in:
@@ -4,6 +4,7 @@ import { db } from '@/lib/db';
|
||||
import { AuthError } from '@/lib/auth/session';
|
||||
import { generateNextDocumentCode } from '@/features/foundation/document-sequence/service';
|
||||
import { getActiveOptionsByCategory } from '@/features/foundation/master-options/service';
|
||||
import { drainProjectionOutboxBestEffort } from '@/features/foundation/projections/server/best-effort-drain';
|
||||
import {
|
||||
CRM_ACTIVITY_ENTITY_TYPES,
|
||||
CRM_ACTIVITY_PERMISSIONS,
|
||||
@@ -677,6 +678,7 @@ export async function createActivity(
|
||||
return createdRow;
|
||||
});
|
||||
|
||||
await drainProjectionOutboxBestEffort();
|
||||
const activity = await getActivityById(created.id, organizationId, context);
|
||||
|
||||
return activity;
|
||||
@@ -810,6 +812,7 @@ correlationId
|
||||
return nextActivity;
|
||||
});
|
||||
|
||||
await drainProjectionOutboxBestEffort();
|
||||
const activity = await getActivityById(activityEventRecord.id, organizationId, context);
|
||||
|
||||
return activity;
|
||||
@@ -846,6 +849,7 @@ actorUserId: userId
|
||||
return nextActivity;
|
||||
});
|
||||
|
||||
await drainProjectionOutboxBestEffort();
|
||||
const activity = await getActivityById(completedEventRecord.id, organizationId, context);
|
||||
return activity;
|
||||
}
|
||||
@@ -880,6 +884,7 @@ actorUserId: userId
|
||||
return nextActivity;
|
||||
});
|
||||
|
||||
await drainProjectionOutboxBestEffort();
|
||||
const activity = await getActivityById(cancelledEventRecord.id, organizationId, context);
|
||||
return activity;
|
||||
}
|
||||
@@ -917,7 +922,8 @@ actorUserId: userId
|
||||
return nextActivity;
|
||||
});
|
||||
|
||||
const activity = await getActivityById(assignedEventRecord.id, organizationId, context);
|
||||
await drainProjectionOutboxBestEffort();
|
||||
const activity = await getActivityById(assignedEventRecord.id, organizationId, context);
|
||||
return activity;
|
||||
}
|
||||
|
||||
@@ -964,6 +970,7 @@ actorUserId: userId
|
||||
return nextActivity;
|
||||
});
|
||||
|
||||
await drainProjectionOutboxBestEffort();
|
||||
const activity = await getActivityById(rescheduledEventRecord.id, organizationId, context);
|
||||
return activity;
|
||||
}
|
||||
@@ -991,4 +998,6 @@ activity: current,
|
||||
actorUserId: userId
|
||||
});
|
||||
});
|
||||
|
||||
await drainProjectionOutboxBestEffort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user