Loading src/dlt/gateway/dltApp/src/dltGateway.js +3 −1 Original line number Diff line number Diff line Loading @@ -101,7 +101,8 @@ async function getFromDlt(call, callback) { // Send the response with the formatted JSON data callback(null, { record_id: call.request, data_json: JSON.stringify(result) }); } catch (error) { if (error.message.includes("data not found for key")) { } catch (error) { if (error.message.includes("data not found for key")) { // Return an empty response when no record is found callback(null, { record_id: call.request, data_json: "{}" }); } else { Loading @@ -112,6 +113,7 @@ async function getFromDlt(call, callback) { }); } } } // Implement subscription to DLT events Loading Loading
src/dlt/gateway/dltApp/src/dltGateway.js +3 −1 Original line number Diff line number Diff line Loading @@ -101,7 +101,8 @@ async function getFromDlt(call, callback) { // Send the response with the formatted JSON data callback(null, { record_id: call.request, data_json: JSON.stringify(result) }); } catch (error) { if (error.message.includes("data not found for key")) { } catch (error) { if (error.message.includes("data not found for key")) { // Return an empty response when no record is found callback(null, { record_id: call.request, data_json: "{}" }); } else { Loading @@ -112,6 +113,7 @@ async function getFromDlt(call, callback) { }); } } } // Implement subscription to DLT events Loading