Додані повідомлення та перепрацьована структура застосунку та api

This commit is contained in:
2026-03-15 00:25:10 +02:00
parent 85483b85bb
commit 4bc9c11512
101 changed files with 5763 additions and 2546 deletions

View File

@@ -1,4 +1,5 @@
const db = require("../config/db");
const genCards = require("../middleware/genCards");
class HousesService {
getListEntrance() {
@@ -228,6 +229,7 @@ class HousesService {
return res(false);
} else {
res({ "status": "ok", "id": this.lastID });
genCards({type: "house", id: this.lastID});
}
});
});
@@ -272,6 +274,8 @@ class HousesService {
return res(false);
} else {
res({ "status": "ok", "id": house_id });
genCards({type: "house", id: house_id});
}
});
});