We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39bfcf6 commit 33db546Copy full SHA for 33db546
README.md
@@ -131,10 +131,10 @@ The `JobCreator` maps a job type to a specific `job` class. You will receive par
131
class TweetJobCreator: JobCreator {
132
133
// Base on type, return the actual job implementation
134
- func create(type: String, params: Any?) -> Job? {
+ func create(type: String, params: [String: Any]?) -> Job? {
135
// check for job and params type
136
- if type == SendTweetJob.type, let message = params as? String {
137
- return SendTweetJob(message: message)
+ if type == SendTweetJob.type {
+ return SendTweetJob(params: params)
138
} else {
139
// Nothing match
140
return nil
0 commit comments