Implements
- OnApplicationBootstrap
- BeforeApplicationShutdown
Properties
Protected nonClassEventPopulationService
Protected semesterService
Methods
beforeApplicationShutdown
- beforeApplicationShutdown(): Promise<void>
onApplicationBootstrap
- onApplicationBootstrap(): Promise<void>
Imlements the nestjs lifecycle hooks to automatically populate and depopulate the database whenever the service is injected into a module.
WARNING: THIS SERVICE WILL TRUNCATE ALL TABLES AUTOMATICALLY WHEN THE NEST APP STOPS. IT SHOULD ONLY BE INJECTED IN TESTING ENVIRONMENTS.