Closed link2xt closed 1 year ago
This fixes the import
, but then the bot crashes when I try to start it:
Error: failed to create bot
Caused by:
0: Failed to convert `{ id: config:config, serial: 4 }` to `T`: missing field `genesis_qr`
1: Failed to convert `{ id: config:config, serial: 4 }` to `T`: missing field `genesis_qr`
I guess this is somewhat expected and was not tested, but I want to get the use case working where import
is called first and then the bot is configured, rather then running start
to configure the bot, then killing it, then running import
, then running start
again.
This PR makes the import
work and making the bot start afterwards would be the next step. I already have the test but no fix for this yet.
This PR consists of two commits, first adds a test and the second fixes it. Without the fix import fails with an error "Error: Can't deserialize serial".