Changes

Jump to navigation Jump to search
m
no edit summary
Line 241: Line 241:     
if ( sqitch === "import record" ) {
 
if ( sqitch === "import record" ) {
 +
debuglog("import command");
 
if ( control_1 != undefined ) {
 
if ( control_1 != undefined ) {
 
// Only import if control_1 is a non-empty object
 
// Only import if control_1 is a non-empty object
 
if ( ( !Array.isArray(control_1) ) && ( Object.keys(control_1).length > 0 ) ) {
 
if ( ( !Array.isArray(control_1) ) && ( Object.keys(control_1).length > 0 ) ) {
 +
debuglog("command is obj");
 
Object.keys(control_1).forEach( function( importkey ){
 
Object.keys(control_1).forEach( function( importkey ){
        if (src.hasOwnProperty(importkey)) { inp_obj[importkey] = src[importkey] };
+
debuglog("importing " + importkey );
 +
        if (control_1.hasOwnProperty(importkey)) { inp_obj[importkey] = control_1[importkey] };
 
})
 
})
 
store.put(inp_obj);
 
store.put(inp_obj);
530

edits

Navigation menu