fix(services): correct database table name in mysql.service.ts
Update the hardcoded table name in the raw SQL query within mysql.service.ts. We changed `categorys` to `categories` to align with the actual database schema. Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
parent
dda3eea9e1
commit
01241dff4b
@ -357,7 +357,7 @@ const MySqlService = {
|
|||||||
if (!data.id) return reject('Id is undefined');
|
if (!data.id) return reject('Id is undefined');
|
||||||
if (data.id.length !== 36) return reject('Id invalid');
|
if (data.id.length !== 36) return reject('Id invalid');
|
||||||
|
|
||||||
const _sql = "INSERT INTO `categorys`(`id`,`slug_name`, `display_name`) VALUES (?, ?, ?)"
|
const _sql = "INSERT INTO `categories`(`id`,`slug_name`, `display_name`) VALUES (?, ?, ?)"
|
||||||
const _values = [
|
const _values = [
|
||||||
data.id,
|
data.id,
|
||||||
data.slug_name,
|
data.slug_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user