From efb3b34f150ea89da677cf573b52a4ab718e98f6 Mon Sep 17 00:00:00 2001 From: lukelyyeung Date: Sat, 7 Oct 2023 01:34:01 +0100 Subject: [PATCH] fix: fieldPath should use single quote in [] --- web_complete/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web_complete/app.js b/web_complete/app.js index a5e8026..8d4dbc5 100644 --- a/web_complete/app.js +++ b/web_complete/app.js @@ -48,7 +48,7 @@ async function createPassClass(req, res) { 'firstValue': { 'fields': [ { - 'fieldPath': 'object.textModulesData["points"]' + 'fieldPath': "object.textModulesData['points']" } ] } @@ -57,7 +57,7 @@ async function createPassClass(req, res) { 'firstValue': { 'fields': [ { - 'fieldPath': 'object.textModulesData["contacts"]' + 'fieldPath': "object.textModulesData['contacts']" } ] } @@ -73,7 +73,7 @@ async function createPassClass(req, res) { 'firstValue': { 'fields': [ { - 'fieldPath': 'class.imageModulesData["event_banner"]' + 'fieldPath': "class.imageModulesData['event_banner']" } ] } @@ -84,7 +84,7 @@ async function createPassClass(req, res) { 'firstValue': { 'fields': [ { - 'fieldPath': 'class.textModulesData["game_overview"]' + 'fieldPath': "class.textModulesData['game_overview']" } ] } @@ -95,7 +95,7 @@ async function createPassClass(req, res) { 'firstValue': { 'fields': [ { - 'fieldPath': 'class.linksModuleData.uris["official_site"]' + 'fieldPath': "class.linksModuleData.uris['official_site']" } ] }