customParameters에도 deepLinkParameters을 넣어서 내려주도록 수정
This commit is contained in:
@@ -51,6 +51,7 @@ services:
|
|||||||
- DATABASE_URL=postgresql://linkforty:secret_password_prod@postgres-prod:5432/linkforty_prod?sslmode=disable
|
- DATABASE_URL=postgresql://linkforty:secret_password_prod@postgres-prod:5432/linkforty_prod?sslmode=disable
|
||||||
- REDIS_URL=redis://redis-prod:6379
|
- REDIS_URL=redis://redis-prod:6379
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
|
- TRUST_PROXY=1
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres-prod
|
- postgres-prod
|
||||||
- redis-prod
|
- redis-prod
|
||||||
@@ -88,6 +89,7 @@ services:
|
|||||||
- DATABASE_URL=postgresql://linkforty:secret_password_sandbox@postgres-sandbox:5432/linkforty_sandbox?sslmode=disable
|
- DATABASE_URL=postgresql://linkforty:secret_password_sandbox@postgres-sandbox:5432/linkforty_sandbox?sslmode=disable
|
||||||
- REDIS_URL=redis://redis-sandbox:6379
|
- REDIS_URL=redis://redis-sandbox:6379
|
||||||
- PORT=3001
|
- PORT=3001
|
||||||
|
- TRUST_PROXY=1
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres-sandbox
|
- postgres-sandbox
|
||||||
- redis-sandbox
|
- redis-sandbox
|
||||||
|
|||||||
@@ -442,6 +442,10 @@ describe('recordInstallEvent', () => {
|
|||||||
pid: 'recommend_user',
|
pid: 'recommend_user',
|
||||||
u: 'abc',
|
u: 'abc',
|
||||||
});
|
});
|
||||||
|
expect(result.deepLinkData.customParameters).toEqual({
|
||||||
|
pid: 'recommend_user',
|
||||||
|
u: 'abc',
|
||||||
|
});
|
||||||
expect(result.deepLinkData.clickQueryParameters).toEqual({ u: 'abc' });
|
expect(result.deepLinkData.clickQueryParameters).toEqual({ u: 'abc' });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -691,6 +691,8 @@ export async function recordInstallEvent(
|
|||||||
utmParameters: link.utm_parameters,
|
utmParameters: link.utm_parameters,
|
||||||
targetingRules: link.targeting_rules,
|
targetingRules: link.targeting_rules,
|
||||||
deepLinkParameters,
|
deepLinkParameters,
|
||||||
|
// Backward-compatible alias for older SDKs expecting `customParameters`.
|
||||||
|
customParameters: deepLinkParameters,
|
||||||
clickQueryParameters: clickQueryParams,
|
clickQueryParameters: clickQueryParams,
|
||||||
clickedAt: match.clickedAt,
|
clickedAt: match.clickedAt,
|
||||||
confidenceScore: match.confidenceScore,
|
confidenceScore: match.confidenceScore,
|
||||||
|
|||||||
Reference in New Issue
Block a user