mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix api-bug
This commit is contained in:
		
							parent
							
								
									c77100e9cf
								
							
						
					
					
						commit
						1a085ffa0a
					
				@ -43,8 +43,9 @@ module.exports = function (app, config) {
 | 
				
			|||||||
    app.post('/client/register', (req, res) => {
 | 
					    app.post('/client/register', (req, res) => {
 | 
				
			||||||
        const data = req.body;
 | 
					        const data = req.body;
 | 
				
			||||||
        const clientIp = req.ip;
 | 
					        const clientIp = req.ip;
 | 
				
			||||||
 | 
					        console.log(data);
 | 
				
			||||||
        clientStrategyStore.insert(data.appName, data.strategies)
 | 
					        clientStrategyStore.insert(data.appName, data.strategies)
 | 
				
			||||||
            .then(() => clientStrategyStore.insert({
 | 
					            .then(() => clientInstanceStore.insert({
 | 
				
			||||||
                appName: data.appName,
 | 
					                appName: data.appName,
 | 
				
			||||||
                instanceId: data.instanceId,
 | 
					                instanceId: data.instanceId,
 | 
				
			||||||
                clientIp,
 | 
					                clientIp,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user