Skip to content

Commit 26398b0

Browse files
TatianaFominagithub-actions[bot]neSpecc
authored
feat(logging): improve signup logs (#557)
* Log user utm source value * Bump version up to 1.2.6 * Apply suggestion from @neSpecc --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Peter <[email protected]>
1 parent 5f1a5bf commit 26398b0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hawk.api",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"main": "index.ts",
55
"license": "BUSL-1.1",
66
"scripts": {

src/resolvers/user.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export default {
6565
priority: TaskPriorities.IMPORTANT,
6666
});
6767

68-
telegram.sendMessage(`🚶 User "${email}" signed up`);
68+
const source = user.utm?.source;
69+
70+
telegram.sendMessage(`🚶 User "${email}" signed up` + (source ? `, from ${source}` : ''));
6971

7072
return isE2E ? password : true;
7173
} catch (e) {

0 commit comments

Comments
 (0)