diff --git a/meteor-testapp/server/main.js b/meteor-testapp/server/main.js index a7bf2fa1..e90a37ee 100644 --- a/meteor-testapp/server/main.js +++ b/meteor-testapp/server/main.js @@ -36,11 +36,11 @@ const bridge = conn.restore(null, SandstormHttpBridge); Meteor.startup(() => { Meteor.methods({ - schedule(job) { + schedule(objectId) { bridge.getSandstormApi().api.schedule( - job.name, - makeCallback(job.objectId), - job.schedule, + { defaultText: 'test job' }, + makeCallback(objectId), + { periodic: 'hourly' } ); } }) diff --git a/tests/tests/appHooks.js b/tests/tests/appHooks.js index 648034dd..cd5103a9 100644 --- a/tests/tests/appHooks.js +++ b/tests/tests/appHooks.js @@ -55,11 +55,7 @@ module.exports['Test saving and restoring capabilities via AppHooks'] = function .waitForElementVisible('.grain-frame', medium_wait) .grainFrame() .execute(function() { - Meteor.call('schedule', { - name: { defaultText: 'test job' }, - schedule: { periodic: 'hourly' }, - objectId: 'someObjectId', - }) + Meteor.call('schedule', 'someObjectId') }) .frameParent() .pause(short_wait)