Видален параметр "Призначення"

This commit is contained in:
2025-10-19 01:21:39 +03:00
parent 3f08f3f6c9
commit c96093c890
9 changed files with 8093 additions and 5633 deletions

View File

@@ -55,7 +55,6 @@ class SheepService {
icon: sheep.icon,
uuid: sheep.uuid,
uuid_manager: mode && mode === 2 ? sheep.uuid_manager : null,
appointment: sheep.appointment,
mode: mode ? Number(sheep.mode) : 0,
mode_title: sheep.mode_title,
possibilities: {}
@@ -126,7 +125,6 @@ class SheepService {
icon: sheep.icon,
uuid: sheep.uuid,
uuid_manager: (mode && mode == 2) ? sheep.uuid_manager : null,
appointment: sheep.appointment,
mode: mode ? Number(sheep.mode) : 0,
mode_title: sheep.mode_title,
possibilities: {}
@@ -150,7 +148,7 @@ class SheepService {
});
}
createSheep(data) {
const stmt1 = db.prepare('INSERT INTO sheeps(name, group_id, appointment, uuid) VALUES (?, ?, ?, ?)');
const stmt1 = db.prepare('INSERT INTO sheeps(name, group_id, uuid) VALUES (?, ?, ?)');
const stmt2 = db.prepare('INSERT INTO possibilities(can_view_territory, sheep_id) VALUES (?, ?)');
return new Promise((res, rej) => {
@@ -160,7 +158,6 @@ class SheepService {
stmt1.run([
data.name,
Number(data.group_id),
data.appointment,
uuid
], function (err) {
if (err) return rej(err);
@@ -185,7 +182,6 @@ class SheepService {
SET
name = ?,
group_id = ?,
appointment = ?,
mode = ?,
mode_title = ?,
uuid_manager = ?
@@ -218,7 +214,6 @@ class SheepService {
stmt1.run([
data.name,
Number(data.group_id),
data.appointment,
Number(data.mode),
data.mode_title,
Number(data.mode) == 0 ? null : (data.uuid_manager ? data.uuid_manager : uuid_manager),