timetable-extension #1
@ -83,7 +83,7 @@ func DeleteCifEntries(deletions []database.DeleteQuery) error {
 | 
			
		||||
		log.Info("No deletions required")
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
	log.Info("Running deletions against database", zap.Int("count", len(deletions)))
 | 
			
		||||
	log.Debug("Running deletions against database", zap.Int("count", len(deletions)))
 | 
			
		||||
 | 
			
		||||
	// Prepare deletion tasks
 | 
			
		||||
	collection := MongoClient.Database(databaseName).Collection(timetableCollection)
 | 
			
		||||
@ -115,7 +115,7 @@ func CreateCifEntries(schedules []database.Service) error {
 | 
			
		||||
		log.Info("No creations required")
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
	log.Info("Running creations against database", zap.Int("count", len(schedules)))
 | 
			
		||||
	log.Debug("Running creations against database", zap.Int("count", len(schedules)))
 | 
			
		||||
 | 
			
		||||
	collection := MongoClient.Database(databaseName).Collection(timetableCollection)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user