Skip to content

Commit 33db546

Browse files
authored
Fix documentation (#40)
1 parent 39bfcf6 commit 33db546

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ The `JobCreator` maps a job type to a specific `job` class. You will receive par
131131
class TweetJobCreator: JobCreator {
132132

133133
// Base on type, return the actual job implementation
134-
func create(type: String, params: Any?) -> Job? {
134+
func create(type: String, params: [String: Any]?) -> Job? {
135135
// check for job and params type
136-
if type == SendTweetJob.type, let message = params as? String {
137-
return SendTweetJob(message: message)
136+
if type == SendTweetJob.type {
137+
return SendTweetJob(params: params)
138138
} else {
139139
// Nothing match
140140
return nil

0 commit comments

Comments
 (0)