CTLE-421: minor bug fixes from demo

This commit is contained in:
Tim Chamberlain
2023-05-04 13:55:31 -05:00
parent 405e6a6e2c
commit 0ce989b75c
2 changed files with 10 additions and 3 deletions

View File

@ -319,8 +319,14 @@ public abstract class AbstractTableSyncTransformStep extends AbstractTransformSt
continue;
}
////////////////////////////////////////////////////////////////
// if we received a record to store add to the output records //
////////////////////////////////////////////////////////////////
recordToStore = populateRecordToStore(runBackendStepInput, recordToStore, sourceRecord);
runBackendStepOutput.addRecord(recordToStore);
if(recordToStore != null)
{
runBackendStepOutput.addRecord(recordToStore);
}
}
////////////////////////////////////////////////

View File

@ -75,6 +75,7 @@ import org.apache.http.HttpStatus;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.entity.AbstractHttpEntity;
import org.apache.http.entity.StringEntity;
@ -320,8 +321,8 @@ public class BaseAPIActionUtil
{
try
{
String url = buildTableUrl(table);
HttpPost request = new HttpPost(url);
String url = buildTableUrl(table);
HttpPut request = new HttpPut(url);
request.setEntity(recordsToEntity(table, recordList));
QHttpResponse response = makeRequest(table, request);