strichliste / strichliste-backend

Strichliste Backend
https://www.strichliste.org
Other
24 stars 14 forks source link

Error after importing strichliste1 database #79

Closed ccoors closed 11 months ago

ccoors commented 11 months ago

For testing I attempted to import our strichliste1 database into the docker-compose environment provided by strichliste-docker. I got this error message:

$ bin/console app:import /tmp/data.sqlite
Imported user '...'
[...]
Imported 0 transactions
Update balance of user '...' to 2.00
[...]
Import done!
[critical] Error thrown while running command "app:import '/tmp/data.sqlite'". Message: "Return value of "App\Command\ImportCommand::execute()" must be of the type int, "null" returned."

In Command.php line 301:

  Return value of "App\Command\ImportCommand::execute()" must be of the type int, "null" returned.  

app:import <database>

I guess this is fine, since the users appeared as "inactive users" with their correct account balance afterwards, but the error message is not great.

schinken commented 11 months ago

https://github.com/strichliste/strichliste-backend/commit/5f11849bedc8a367c869a07d3832de6772489e45 :)