1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-06-30 23:40:05 +01:00

Build verb invocation should return JSON result.

This commit is contained in:
hacksalot 2016-01-20 01:48:33 -05:00
parent 001fd893c1
commit 9419f905df

View File

@ -44,8 +44,9 @@ Implementation of the 'build' verb for HackMyResume.
/** Invoke the Build command. */
invoke: function() {
this.stat( HMEVENT.begin, { cmd: 'build' } );
build.apply( this, arguments );
var ret = build.apply( this, arguments );
this.stat( HMEVENT.end );
return ret;
}
});
@ -118,7 +119,6 @@ Implementation of the 'build' verb for HackMyResume.
addFreebieFormats( theme );
this.stat( HMEVENT.applyTheme, { r: rez });
// Load the resume into a FRESHResume or JRSResume object
_rezObj = new (RTYPES[ toFormat ])().parseJSON( rez );
@ -131,7 +131,7 @@ Implementation of the 'build' verb for HackMyResume.
}, this);
// Don't send the client back empty-handed
return { sheet: rez, targets: targets, processed: targets };
return { sheet: _rezObj, targets: targets, processed: targets };
}