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:
Mathis H (Avnyr) 2024-04-25 16:07:29 +02:00
parent dda3eea9e1
commit 01241dff4b
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -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,