Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notifications-bot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archives
notifications-bot
Commits
93153fdf
Commit
93153fdf
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Plain Diff
Merge branch 'release' into 'master'
Release See merge request elixxir/notifications-bot!23
parents
e5a53692
1af28bd3
No related branches found
No related tags found
1 merge request
!23
Release
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-6
5 additions, 6 deletions
.gitlab-ci.yml
notifications/notifications.go
+1
-0
1 addition, 0 deletions
notifications/notifications.go
storage/databaseImpl.go
+2
-2
2 additions, 2 deletions
storage/databaseImpl.go
with
8 additions
and
8 deletions
.gitlab-ci.yml
+
5
−
6
View file @
93153fdf
...
...
@@ -67,12 +67,11 @@ tag:
-
git tag $(./release/notifications.linux64 version | grep "Elixxir Notifications Server v"| cut -d ' ' -f4) -f
-
git push origin_tags -f --tags
trigger
_
integration
:
trigger
-
integration
:
stage
:
trigger_integration
script
:
# Server
-
"
curl
-X
POST
-F
token=2a4419808282d0a47c55eee8b9904e
-F
ref=master
https://gitlab.com/api/v4/projects/28/trigger/pipeline"
# Client
-
"
curl
-X
POST
-F
token=602ad7669e7d6daa61b210a0c4312b
-F
ref=master
https://gitlab.com/api/v4/projects/28/trigger/pipeline"
trigger
:
project
:
elixxir/integration
branch
:
$CI_COMMIT_REF_NAME
only
:
-
master
-
release
This diff is collapsed.
Click to expand it.
notifications/notifications.go
+
1
−
0
View file @
93153fdf
...
...
@@ -216,6 +216,7 @@ func notifyUser(ephID int64, data []*notifications.Data, apnsClient *apns.ApnsCo
u
,
err
:=
db
.
GetUserByHash
(
e
.
TransmissionRSAHash
)
if
err
!=
nil
{
jww
.
ERROR
.
Printf
(
"Failed to lookup user with tRSA hash %+v: %+v"
,
e
.
TransmissionRSAHash
,
err
)
continue
}
isAPNS
:=
!
strings
.
Contains
(
u
.
Token
,
":"
)
...
...
This diff is collapsed.
Click to expand it.
storage/databaseImpl.go
+
2
−
2
View file @
93153fdf
...
...
@@ -18,7 +18,7 @@ func (impl *DatabaseImpl) GetUser(userId []byte) (*User, error) {
u
:=
&
User
{}
err
:=
impl
.
db
.
Take
(
u
,
"intermediary_id = ?"
,
userId
)
.
Error
if
err
!=
nil
{
return
nil
,
err
ors
.
Errorf
(
"Failed to retrieve user with ID %s: %+v"
,
userId
,
err
)
return
nil
,
err
}
return
u
,
nil
}
...
...
@@ -28,7 +28,7 @@ func (impl *DatabaseImpl) GetUserByHash(transmissionRsaHash []byte) (*User, erro
u
:=
&
User
{}
err
:=
impl
.
db
.
Take
(
u
,
"transmission_rsa_hash = ?"
,
transmissionRsaHash
)
.
Error
if
err
!=
nil
{
return
nil
,
err
ors
.
Errorf
(
"Failed to retrieve user with tRSA hash %s: %+v"
,
transmissionRsaHash
,
err
)
return
nil
,
err
}
return
u
,
nil
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment