diff --git a/distributor/src/distributor/main.bal b/distributor/src/distributor/main.bal index 4877b27..112b13d 100644 --- a/distributor/src/distributor/main.bal +++ b/distributor/src/distributor/main.bal @@ -54,7 +54,8 @@ public function main() returns error? { // enabled: true, // maxCount: 5 //}, - timeoutInMillis: 5*60000 // Check + //timeoutInMillis: 5*60000 // Check + timeoutInMillis: 5000 // Check } }); diff --git a/distributor/src/distributor/save.bal b/distributor/src/distributor/save.bal index bb0c263..4e2265b 100644 --- a/distributor/src/distributor/save.bal +++ b/distributor/src/distributor/save.bal @@ -18,7 +18,7 @@ const string CREATE_RESULTS_TABLE = "CREATE TABLE IF NOT EXISTS results (" + " election VARCHAR(50) NOT NULL," + " code VARCHAR(100) NOT NULL," + " type VARCHAR(100) NOT NULL," + - " jsonResult VARCHAR(60000) NOT NULL," + + " jsonResult LONGTEXT NOT NULL," + " imageMediaType VARCHAR(50) DEFAULT NULL," + " imageData MEDIUMBLOB DEFAULT NULL," + " PRIMARY KEY (sequenceNo))";