customParameters에도 deepLinkParameters을 넣어서 내려주도록 수정

This commit is contained in:
2026-08-03 20:42:59 +09:00
parent 02ce4bfb3f
commit 8ced9ecf1c
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -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
+4
View File
@@ -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' });
}); });
}); });
+2
View File
@@ -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,