mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-11 06:11:13 +08:00
Add writing of query params
This commit is contained in:
@@ -29,7 +29,10 @@ export default (domains, global) => {
|
||||
|
||||
// Handle domains
|
||||
// Always save changes, even if none, so we can replicate the correct number of domains
|
||||
exportData.domains = domains.map(domain => categoriesExport(domain[0]));
|
||||
exportData.domains = domains.map(domain => categoriesExport(domain[0])).reduce((prev, current, index) => {
|
||||
prev[index] = current;
|
||||
return prev;
|
||||
}, {});
|
||||
|
||||
// Handle global
|
||||
// If there were any category changes, save global changes
|
||||
|
Reference in New Issue
Block a user