File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- import { Promise } from "meteor/promise"
1+ import { Utilities } from '../../utilities'
22import { Utilities } from "../../utilities"
33import { toolbelt } from "./toolbelt.js"
44
@@ -11,9 +11,10 @@ const process = async function (doc, callback) {
1111 const Toolbelt = new toolbelt ( doc ) ;
1212
1313 try {
14- const res = Utilities . registry . data [ doc . name ] . apply ( Toolbelt , doc . arguments ) ;
14+ // const res = Utilities.registry.data[doc.name].apply(Toolbelt, doc.arguments)
1515 const jobResult = Promise . await ( Promise . resolve ( res ) ) ;
16- const resolution = Toolbelt . checkForResolution ( jobResult ) ;
16+ // const jobResult = await res()
17+ const jobResult = await Utilities . registry . data [ doc . name ] . apply ( Toolbelt , doc . arguments )
1718
1819 if ( typeof callback === "function" ) {
1920 return callback ( undefined , jobResult ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const find = async function () {
1616
1717 // Third, run the described callback
1818 if ( typeof input . callback === "function" ) {
19- process ( jobDoc , input . callback ) ;
19+ await process ( jobDoc , input . callback ) ;
2020 }
2121}
2222
You can’t perform that action at this time.
0 commit comments