feat: filter digital sync links by device
This commit is contained in:
@@ -147,7 +147,7 @@ describe("digital employee sync service", () => {
|
||||
id: "plan:upsert:plan-2",
|
||||
dueForRetry: false,
|
||||
managementRecordUrl:
|
||||
"https://manage.example.com/system/content/content-digital-employee-sync?entity_type=plan&entity_id=plan-2&outbox_id=plan%3Aupsert%3Aplan-2",
|
||||
"https://manage.example.com/system/content/content-digital-employee-sync?device_id=device-001&entity_type=plan&entity_id=plan-2&outbox_id=plan%3Aupsert%3Aplan-2",
|
||||
attemptHistory: [
|
||||
expect.objectContaining({
|
||||
attemptNo: 1,
|
||||
|
||||
@@ -636,6 +636,7 @@ function buildManagementRecordUrl(
|
||||
try {
|
||||
const endpoint = new URL(config.endpoint);
|
||||
const url = new URL(MANAGEMENT_SYNC_RECORD_PATH, endpoint.origin);
|
||||
url.searchParams.set("device_id", getDeviceId());
|
||||
url.searchParams.set("entity_type", row.entity_type);
|
||||
url.searchParams.set("entity_id", row.entity_id);
|
||||
url.searchParams.set("outbox_id", row.id);
|
||||
|
||||
Reference in New Issue
Block a user