From 0c19dde34d8e8a790c0b6495d823682d800a9255 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Wed, 31 Jul 2024 15:50:19 +0200 Subject: [PATCH] remove mac_address not used --- models/userModel.ts | 3 +-- sql/base.sql | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/models/userModel.ts b/models/userModel.ts index 833d6c7..fceb279 100644 --- a/models/userModel.ts +++ b/models/userModel.ts @@ -11,10 +11,9 @@ export enum values { omdb_key, twitch_client_id, twitch_client_secret, - mac_address } -const namesOfValues: string[] = ["", "pass", "omdb_key", "twitch_client_id", "twitch_client_secret", "mac_address"]; +const namesOfValues: string[] = ["", "pass", "omdb_key", "twitch_client_id", "twitch_client_secret"]; async function getValue(name: values): Promise { try { diff --git a/sql/base.sql b/sql/base.sql index 0ba3f0e..da7c359 100644 --- a/sql/base.sql +++ b/sql/base.sql @@ -41,9 +41,8 @@ INSERT INTO userData (name, value) VALUES ("omdb_key", ""); INSERT INTO userData (name, value) VALUES ("twitch_client_id", ""); -INSERT INTO userData (name, value) VALUES ("twitch_client_secret", ""); - -INSERT INTO userData (name, value) VALUES ("mac_address", ""); +INSERT INTO + userData (name, value) VALUES ("twitch_client_secret", ""); CREATE TABLE bankCardTransaction ( id INT NOT NULL AUTO_INCREMENT,