EnAccess / micropowermanager

Open Source Management Tool for Decentralized Utilities.
https://micropowermanager.io/
MIT License
2 stars 4 forks source link

Fix `AgentCharge` model relations and Seeder #321

Closed dmohns closed 4 weeks ago

dmohns commented 1 month ago

Brief summary of the change made

Currently, the AgentCharge button in the UI is not working. As the frontend is passing wrong payload to the backend. Also, the entire Model relationship between Agent and AgentCharge is utterly broken. amount is not stored in the model. Fixing all this here, and adding a Seeder

Are there any other side effects of this change that we should be aware of?

No

Describe how you tested your changes?

Pull Request checklist

Please confirm you have completed any of the necessary steps below.