Browse Source

Forgot to correctly propagate format change

Brendan Abolivier 7 years ago
parent
commit
9143c0577a
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      server.js

+ 2
- 2
server.js View File

150
 	// Response will be JSON
150
 	// Response will be JSON
151
 	res.header('Access-Control-Allow-Headers', 'Content-Type');
151
 	res.header('Access-Control-Allow-Headers', 'Content-Type');
152
 
152
 
153
-	// Send an array anyway, its length will determine if we need to display any
154
-	let customFields = settings.customFields || [];
153
+	// Send an object anyway, its size will determine if we need to display any
154
+	let customFields = settings.customFields || {};
155
 	
155
 	
156
 	// Send custom fields data
156
 	// Send custom fields data
157
 	res.status(200).send(customFields);
157
 	res.status(200).send(customFields);