Backend: People & Media

- Added people manager
- Auto update non fully fetched people
- People media downloader
- Updated media controller to serve peoples profiles
- Config people media folders auto creation
This commit is contained in:
X4Lo committed 2025-07-12 02:54:18 +01:00
1 parent 367c9899a0
commit 9d8f2899d4
6 files changed
+120 -10

No files matched your search

+3 -2
View File
@@ -1,7 +1,8 @@
const peopleService = require("../services/peopleService");
const { logToFile } = require("../services/logService");
const peopleManager = require("../services/peopleManager");
const _peopleService = peopleService;
const _peopleManager = peopleManager;
class PeopleController {
constructor() {
@@ -24,7 +25,7 @@ class PeopleController {
async getPersonById(req, res) {
const { id } = req.params;
const person = await _peopleService.getPersonById(id);
const person = await _peopleManager.getUpdatedPerson(id);
res.status(200).json(person);
}