mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-12-27 07:17:23 +00:00
Build verb invocation should return JSON result.
This commit is contained in:
parent
001fd893c1
commit
9419f905df
@ -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 };
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user