Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
This commit is contained in:
6
backend/services/falukantService.js
Normal file → Executable file
6
backend/services/falukantService.js
Normal file → Executable file
@@ -3587,10 +3587,10 @@ class FalukantService extends BaseService {
|
||||
return { scheduled: false };
|
||||
}
|
||||
|
||||
// Gleicher Default wie adminForceFalukantPregnancy (21 Tage bis Geburt — komprimierte Spielzeit).
|
||||
const BIRTH_DUE_DAYS = 21;
|
||||
// Automatische Hochzeits-Schwangerschaften nutzen die kurze Spielzeit von 18 Stunden.
|
||||
const BIRTH_DUE_HOURS = 18;
|
||||
const due = new Date();
|
||||
due.setDate(due.getDate() + BIRTH_DUE_DAYS);
|
||||
due.setHours(due.getHours() + BIRTH_DUE_HOURS);
|
||||
|
||||
await FalukantCharacter.unscoped().update(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user