coltoneshaw / 3cpm

The 3C Portfolio Manager is an essential addon to your 3Commas experience. It enables you to manage your DCA bots with greater analytics, real-time alerting, and tons of additional features.
GNU General Public License v3.0
120 stars 21 forks source link

Cannot update bot parameters #120

Closed JackieTreeh0rn closed 2 years ago

JackieTreeh0rn commented 2 years ago

Describe the bug with write mode enabled (paper account), after editing fields on a bot for things like BO or SO, etc, and hitting save table, does not update 3commas.

console output Uncaught (in promise) Error: Error invoking remote method 'upsert-database': SqliteError: unrecognized token: "';"

i.invoke @ VM75 renderer_init.js:73
  async function (async)    
  i.invoke @ VM75 renderer_init.js:73
  upsert @ preload.ts:66
  ElectronDBRepository.upsert @ Database.ts:23
  saveCustomDeals @ BotPlanner.tsx:188
  onClick @ SaveButton.tsx:20
  callCallback @ react-dom.development.js:3945
  invokeGuardedCallbackDev @ react-dom.development.js:3994
  invokeGuardedCallback @ react-dom.development.js:4056
  invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
  executeDispatch @ react-dom.development.js:8243
  processDispatchQueueItemsInOrder @ react-dom.development.js:8275
  processDispatchQueue @ react-dom.development.js:8288
  dispatchEventsForPlugins @ react-dom.development.js:8299
  (anonymous) @ react-dom.development.js:8508
  batchedEventUpdates$1 @ react-dom.development.js:22396
  batchedEventUpdates @ react-dom.development.js:3745
  dispatchEventForPluginEventSystem @ react-dom.development.js:8507
  attemptToDispatchEvent @ react-dom.development.js:6005
  dispatchEvent @ react-dom.development.js:5924
  unstable_runWithPriority @ scheduler.development.js:468
  runWithPriority$1 @ react-dom.development.js:11276
  discreteUpdates$1 @ react-dom.development.js:22413
  discreteUpdates @ react-dom.development.js:3756
  dispatchDiscreteEvent @ react-dom.development.js:5889

Desktop (please complete the following information):

coltoneshaw commented 2 years ago

Hey @fsck66, The editing actually is only for TP on the active deals screen. It doesn't allow editing bot parameters as of yet. However, That's something i'm actively working on!