You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 04:11:42 +03:00 
			
		
		
		
	Various tweaks and backend improvements
This commit is contained in:
		@@ -8,6 +8,7 @@ import deadHostModel from "./dead_host.js";
 | 
			
		||||
import now from "./now_helper.js";
 | 
			
		||||
import proxyHostModel from "./proxy_host.js";
 | 
			
		||||
import redirectionHostModel from "./redirection_host.js";
 | 
			
		||||
import streamModel from "./stream.js";
 | 
			
		||||
import userModel from "./user.js";
 | 
			
		||||
 | 
			
		||||
Model.knex(db);
 | 
			
		||||
@@ -114,6 +115,17 @@ class Certificate extends Model {
 | 
			
		||||
					qb.where("redirection_host.is_deleted", 0);
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
			streams: {
 | 
			
		||||
				relation: Model.HasManyRelation,
 | 
			
		||||
				modelClass: streamModel,
 | 
			
		||||
				join: {
 | 
			
		||||
					from: "certificate.id",
 | 
			
		||||
					to: "stream.certificate_id",
 | 
			
		||||
				},
 | 
			
		||||
				modify: (qb) => {
 | 
			
		||||
					qb.where("stream.is_deleted", 0);
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		};
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user