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
|
||||
- REDIS_URL=redis://redis-prod:6379
|
||||
- PORT=3000
|
||||
- TRUST_PROXY=1
|
||||
depends_on:
|
||||
- postgres-prod
|
||||
- redis-prod
|
||||
@@ -88,6 +89,7 @@ services:
|
||||
- DATABASE_URL=postgresql://linkforty:secret_password_sandbox@postgres-sandbox:5432/linkforty_sandbox?sslmode=disable
|
||||
- REDIS_URL=redis://redis-sandbox:6379
|
||||
- PORT=3001
|
||||
- TRUST_PROXY=1
|
||||
depends_on:
|
||||
- postgres-sandbox
|
||||
- redis-sandbox
|
||||
|
||||
@@ -442,6 +442,10 @@ describe('recordInstallEvent', () => {
|
||||
pid: 'recommend_user',
|
||||
u: 'abc',
|
||||
});
|
||||
expect(result.deepLinkData.customParameters).toEqual({
|
||||
pid: 'recommend_user',
|
||||
u: 'abc',
|
||||
});
|
||||
expect(result.deepLinkData.clickQueryParameters).toEqual({ u: 'abc' });
|
||||
});
|
||||
});
|
||||
|
||||
@@ -691,6 +691,8 @@ export async function recordInstallEvent(
|
||||
utmParameters: link.utm_parameters,
|
||||
targetingRules: link.targeting_rules,
|
||||
deepLinkParameters,
|
||||
// Backward-compatible alias for older SDKs expecting `customParameters`.
|
||||
customParameters: deepLinkParameters,
|
||||
clickQueryParameters: clickQueryParams,
|
||||
clickedAt: match.clickedAt,
|
||||
confidenceScore: match.confidenceScore,
|
||||
|
||||
Reference in New Issue
Block a user