write tasks inside of workers
This commit is contained in:
@@ -529,7 +529,7 @@ const handleFirstMessage = function (Env, channelName, metadata) {
|
||||
if(metadata.expire && typeof(metadata.expire) === 'number') {
|
||||
// the fun part...
|
||||
// the user has said they want this pad to expire at some point
|
||||
Env.tasks.write(metadata.expire, "EXPIRE", [ channelName ], function (err) {
|
||||
Env.writeTask(metadata.expire, "EXPIRE", [ channelName ], function (err) {
|
||||
if (err) {
|
||||
// if there is an error, we don't want to crash the whole server...
|
||||
// just log it, and if there's a problem you'll be able to fix it
|
||||
|
||||
Reference in New Issue
Block a user