Skip to content

Commit

Permalink
fix(script): Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Jun 18, 2016
1 parent fe595a1 commit 3757f2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ getUf = () ->
parseDuration = (duration) ->
return moment.utc(duration * 1000).format("HH:mm:ss")

process = (timeEntries, amount, price) ->
processTimeEntries = (timeEntries, amount, price) ->
new Promise (resolve, reject) ->
getUf().then (uf) ->
limit = (amount / (uf * price)) * 3600
Expand Down Expand Up @@ -106,13 +106,13 @@ module.exports = (robot) ->
message = ""
toggl = getClient encryptor.decrypt user.toggl.api_token
toggl.getTimeEntriesAsync(start, end).then (timeEntries) ->
process timeEntries, amount, price
processTimeEntries timeEntries, amount, price
.then (data) ->
message = data.message
toggl.updateTimeEntriesTagsAsync data.teIds, tags, action
.then () ->
res.send message
welcome = "#{msg.message.user.name} close tasks successfull"
welcome = "#{res.message.user.name} close tasks successfull"
robot.messageRoom(channel, "#{welcome}\n#{message}")
.catch (err) ->
res.reply "an error occurred in toggl"
Expand Down

0 comments on commit 3757f2c

Please sign in to comment.