mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Informing about the new update
This commit is contained in:
		| @@ -26,6 +26,8 @@ in ```/server/config```. There are ```*.example.js``` files for all the ones men | |||||||
|  |  | ||||||
| If you want to use Google Analytics, have a look at ```analytics.example.js``` in ```server/config/```. | If you want to use Google Analytics, have a look at ```analytics.example.js``` in ```server/config/```. | ||||||
|  |  | ||||||
|  | If you have run the server before the table-structures where added, please run ```node server/apps/rewrite.js```. This will fix any crashes that occurs because of faulty document-collectionnames due to moving channel-settings to a separate collection. | ||||||
|  |  | ||||||
| Use ```$ npm start``` to start the server. (Alternative you can use the ```pm2.json``` in the project-root, if you prefer pm2 for running the apps.) | Use ```$ npm start``` to start the server. (Alternative you can use the ```pm2.json``` in the project-root, if you prefer pm2 for running the apps.) | ||||||
|  |  | ||||||
| ### About | ### About | ||||||
|   | |||||||
| @@ -8,17 +8,9 @@ db.getCollectionNames(function(err, docs) { | |||||||
|     } |     } | ||||||
| }) | }) | ||||||
|  |  | ||||||
| /*function delete(name) { |  | ||||||
|     db.collection(name).remove(function(err, doc) { |  | ||||||
|  |  | ||||||
|     }) |  | ||||||
| }*/ |  | ||||||
|  |  | ||||||
| function makeNewAndDelete(name) { | function makeNewAndDelete(name) { | ||||||
|     db.collection(name).find({views: {$exists: true}}, function(err, doc) { |     db.collection(name).find({views: {$exists: true}}, function(err, doc) { | ||||||
|         //console.log(doc); |  | ||||||
|         if(doc.length == 0) { |         if(doc.length == 0) { | ||||||
|             //console.log(name); |  | ||||||
|         } else if(doc.length == 1) { |         } else if(doc.length == 1) { | ||||||
|             db.collection(name + "_settings").insert(doc[0], function(err, result){ |             db.collection(name + "_settings").insert(doc[0], function(err, result){ | ||||||
|                 console.log("Result insert", result); |                 console.log("Result insert", result); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user