UNPKG

wfm_package

Version:

A website about writing from my mother

21 lines (16 loc) 556 B
function modify_update_Profile(actionType, profile_Data) { //arguement #1: actionType - valid values are "Add" or "Update" // argument #2: profile_Data - a JSON string containing all profile values var cSQL = "" var JData = JSON.parse(profile_Data); if (actionType == "Add") { cSQL = "Insert into "; return "Profile record added..."; } else { cSQL = "Update "; return "Profile record updated..."; } } module.exports = { Add_Update_Profile: modify_update_Profile }