mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 10:47:48 +00:00 
			
		
		
		
	Moving ActionLinks into ORM
This commit is contained in:
		| @@ -21,12 +21,14 @@ namespace OpenWifi { | ||||
|         UserTokenDB_ = std::make_unique<OpenWifi::BaseTokenDB>("Tokens", "tok", dbType_,*Pool_, Logger()); | ||||
|         SubTokenDB_ = std::make_unique<OpenWifi::BaseTokenDB>("SubTokens", "stk", dbType_,*Pool_, Logger()); | ||||
|         PreferencesDB_ = std::make_unique<OpenWifi::PreferencesDB>("Preferences", "pre", dbType_,*Pool_, Logger()); | ||||
|         ActionLinksDB_ = std::make_unique<OpenWifi::ActionLinkDB>("Actions", "act", dbType_,*Pool_, Logger()); | ||||
|  | ||||
|         UserDB_->Create(); | ||||
|         SubDB_->Create(); | ||||
|         UserTokenDB_->Create(); | ||||
|         SubTokenDB_->Create(); | ||||
|         PreferencesDB_->Create(); | ||||
|         ActionLinksDB_->Create(); | ||||
|  | ||||
| 		UserDB_->InitializeDefaultUser(); | ||||
|  | ||||
| @@ -50,7 +52,7 @@ namespace OpenWifi { | ||||
|         StorageService()->SubTokenDB().CleanExpiredTokens(); | ||||
|         StorageService()->UserTokenDB().CleanExpiredTokens(); | ||||
|         logger.information("Squiggy the DB: removing old actionLinks."); | ||||
|         StorageService()->CleanOldActionLinks(); | ||||
|         StorageService()->ActionLinksDB().CleanOldActionLinks(); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959