Skip to content

Commit

Permalink
Merge pull request #1092 from UniversityOfHelsinkiCS/trunk
Browse files Browse the repository at this point in the history
true -> !true
  • Loading branch information
sasumaki authored Jul 9, 2019
2 parents 55c97c7 + b9d5ef6 commit 22ea735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/updater_api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const handleMessage = async (priority) => async (msg) => { // :d
data = await getStudent(message)
try {
// TODO: check that data is properly structured(?)
stan.publish(priority ? 'UpdateWrite' : 'PriorityWrite', JSON.stringify(data), (err, guid) => {
stan.publish(priority ? 'PriorityWrite' :'UpdateWrite' , JSON.stringify(data), (err, guid) => {
if (err) {
return err
} else {
Expand Down
2 changes: 1 addition & 1 deletion services/updater_scheduler/src/schedule_students.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const publish = async (tasks, priority = false) => {
if (rampup > 1) {
rampup = rampup - 1
}
stan.publish(priority ? 'UpdateApi' : 'PriorityApi', task.task, (err, guid) => {
stan.publish(priority ? 'PriorityApi' : 'UpdateApi', task.task, (err, guid) => {
console.log(guid)
if (err) {
console.log('publish failed', err)
Expand Down

0 comments on commit 22ea735

Please sign in to comment.