Skip to content

Commit

Permalink
fix: bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrdrvn committed Feb 7, 2022
1 parent 911c096 commit 2f5e149
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
4 changes: 2 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<module>
<name>vuefront</name>
<displayName><![CDATA[VueFront]]></displayName>
<version><![CDATA[2.1.1]]></version>
<version><![CDATA[2.1.2]]></version>
<description><![CDATA[CMS Connect App for PrestaShop]]></description>
<author><![CDATA[VueFront]]></author>
<tab><![CDATA[front_office_features]]></tab>
<confirmUninstall><![CDATA[Are you sure you want to uninstall?]]></confirmUninstall>
<is_configurable>1</is_configurable>
<need_instance>0</need_instance>
<limited_countries></limited_countries>
</module>
</module>
10 changes: 8 additions & 2 deletions model/common/customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ public function updateCustomerData($id, $data)

$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
if (!$result) {
Db::getInstance(_PS_USE_SQL_SLAVE_)->execute('INSERT INTO `' . _DB_PREFIX_ . 'vuefront_customer` SET id_customer = \''.$id.'\', phone = \''.$data['phone'].'\'');
Db::getInstance(_PS_USE_SQL_SLAVE_)->execute(
'INSERT INTO `' . _DB_PREFIX_ . 'vuefront_customer`
SET id_customer = \''.$id.'\', phone = \''.$data['phone'].'\''
);
} else {
DB::getInstance(_PS_USE_SQL_SLAVE_)->execute('UPDATE `'._DB_PREFIX_.'vuefront_customer` SET phone = \''.$data['phone'].'\' WHERE id_customer = \''.$id.'\'');
DB::getInstance(_PS_USE_SQL_SLAVE_)->execute(
'UPDATE `'._DB_PREFIX_.'vuefront_customer`
SET phone = \''.$data['phone'].'\' WHERE id_customer = \''.$id.'\''
);
}
}
public function getCustomerData($id)
Expand Down
8 changes: 6 additions & 2 deletions resolver/common/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ public function updateSite($args)

curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, "https://vuefront2019.s3.amazonaws.com/sites/".$args['number']."/vuefront-app.tar");
curl_setopt(
$ch,
CURLOPT_URL,
"https://vuefront2019.s3.amazonaws.com/sites/".$args['number']."/vuefront-app.tar"
);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 150);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);

Expand Down Expand Up @@ -107,7 +111,7 @@ public function authProxy($args)
return $result['token'];
}

public function version($args)
public function version()
{
return '1.0.0';
}
Expand Down
8 changes: 6 additions & 2 deletions views/js/d_vuefront/82c1c478b5af344ee048.bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions views/js/graphiql.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions vuefront.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct()
{
$this->name = 'vuefront'; // internal identifier, unique and lowercase
$this->tab = 'front_office_features'; // backend module coresponding category
$this->version = '2.1.1'; // version number for the module
$this->version = '2.1.2'; // version number for the module
$this->author = 'VueFront'; // module author
$this->need_instance = 0; // load the module when displaying the "Modules" page in backend
$this->bootstrap = true;
Expand Down Expand Up @@ -147,7 +147,7 @@ public function registerAdminAjaxTab()
}

$tab->id_parent = -1;

return $tab->save();
}
public function registerAdminTab()
Expand Down

0 comments on commit 2f5e149

Please sign in to comment.