Add impossible seen dates maintenance endpoint
- Backend: fixImpossibleSeenDates scan/fix in maintenanceService detects movies with EntrySeen date before release_date, adds them to a "Movies with impossible seen date" collection - Frontend: ImpossibleSeenDatesSection in SettingsPage with Scan and Fix buttons - Updated API docs (Clients + Reference), cleaned up removed migrateSeenWith references
This commit is contained in:
1 parent
3df2e2ce3e
commit
d984210dd9
8 files changed
+294
-124
No files matched your search
@@ -1,4 +1,4 @@
|
||||
const maintenanceService = require('../services/maintenanceService');
|
||||
const maintenanceService = require("../services/maintenanceService");
|
||||
|
||||
const _maintenanceService = maintenanceService;
|
||||
|
||||
@@ -68,6 +68,16 @@ class MaintenanceController {
|
||||
const result = await _maintenanceService.autoFixWatchStatuses();
|
||||
return res.status(200).json(result);
|
||||
}
|
||||
|
||||
async getImpossibleSeenDates(req, res) {
|
||||
const result = await _maintenanceService.fixImpossibleSeenDates(true);
|
||||
return res.status(200).json(result);
|
||||
}
|
||||
|
||||
async fixImpossibleSeenDates(req, res) {
|
||||
const result = await _maintenanceService.fixImpossibleSeenDates();
|
||||
return res.status(200).json(result);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new MaintenanceController();
|
||||
Reference in new issue
Block a user