Skip to content

Commit 3757f2c

Browse files
committed
fix(script): Fix typos
1 parent fe595a1 commit 3757f2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/script.coffee

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ getUf = () ->
4141
parseDuration = (duration) ->
4242
return moment.utc(duration * 1000).format("HH:mm:ss")
4343

44-
process = (timeEntries, amount, price) ->
44+
processTimeEntries = (timeEntries, amount, price) ->
4545
new Promise (resolve, reject) ->
4646
getUf().then (uf) ->
4747
limit = (amount / (uf * price)) * 3600
@@ -106,13 +106,13 @@ module.exports = (robot) ->
106106
message = ""
107107
toggl = getClient encryptor.decrypt user.toggl.api_token
108108
toggl.getTimeEntriesAsync(start, end).then (timeEntries) ->
109-
process timeEntries, amount, price
109+
processTimeEntries timeEntries, amount, price
110110
.then (data) ->
111111
message = data.message
112112
toggl.updateTimeEntriesTagsAsync data.teIds, tags, action
113113
.then () ->
114114
res.send message
115-
welcome = "#{msg.message.user.name} close tasks successfull"
115+
welcome = "#{res.message.user.name} close tasks successfull"
116116
robot.messageRoom(channel, "#{welcome}\n#{message}")
117117
.catch (err) ->
118118
res.reply "an error occurred in toggl"

0 commit comments

Comments
 (0)