Skip to content

Commit

Permalink
test-notification
Browse files Browse the repository at this point in the history
  • Loading branch information
PooyaRaki committed Dec 23, 2024
1 parent 6fa5b86 commit 6b88e60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
parallel-finished: true

docker-publish-staging:
if: (github.event_name == 'push' && github.ref == 'refs/heads/main')
if: (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/notification-test'))
needs: [prettier, es-lint, tests-finish]
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 5 additions & 0 deletions src/routes/notifications/v1/notifications.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export class NotificationsController {
return await this.notificationsService.registerDevice(registerDeviceDto);
}

console.log('registerDeviceDto:', JSON.stringify(registerDeviceDto));

if (registerDeviceDto.timestamp) {
this.validateTimestamp(parseInt(registerDeviceDto.timestamp));
}
Expand Down Expand Up @@ -161,6 +163,9 @@ export class NotificationsController {
(safe) => safe.safes,
);

console.log(
`gnosis-safe${args.timestamp}${args.uuid}${args.cloudMessagingToken}${safeAddresses.sort().join('')}`,
);
const recoveredAddress = await recoverMessageAddress({
message: {
raw: keccak256(
Expand Down

0 comments on commit 6b88e60

Please sign in to comment.