Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
hive
condenser
Commits
08a234db
Commit
08a234db
authored
8 years ago
by
valzav
Browse files
Options
Downloads
Patches
Plain Diff
remove 'break' statement used for debugging
parent
3d9209ae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/webpush_notify.js
+2
-3
2 additions, 3 deletions
scripts/webpush_notify.js
with
2 additions
and
3 deletions
scripts/webpush_notify.js
+
2
−
3
View file @
08a234db
...
...
@@ -21,13 +21,13 @@ function notify(account, nparams, title, body, url, pic) {
}
async
function
process_queue
()
{
console
.
log
(
'
-- processing web push notifications queue -->
'
);
try
{
const
queue
=
await
Tarantool
.
instance
().
call
(
'
webpush_get_delivery_queue
'
);
console
.
log
(
'
processing web push notifications queue, length:
'
,
queue
.
length
);
for
(
const
n
of
queue
)
{
if
(
n
.
length
===
0
)
return
;
const
[
account
,
nparams_array
,
title
,
body
,
url
,
pic
]
=
n
;
console
.
log
(
'
--
notification
-->
'
,
account
,
body
,
url
,
pic
);
console
.
log
(
'
notification
:
'
,
account
,
body
,
url
,
pic
);
for
(
const
nparams
of
nparams_array
)
{
try
{
await
notify
(
account
,
nparams
,
title
,
body
,
url
,
pic
);
...
...
@@ -35,7 +35,6 @@ async function process_queue() {
console
.
error
(
'
-- error in notify -->
'
,
account
,
err
);
}
}
break
;
}
// console.log('-- run.run -->', queue);
}
catch
(
error
)
{
...
...
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