Sh4yy / selfhosthq

A community-driven and open-source project to create a list of comprehensive guides and best practices for self-hosting services.
https://selfhosthq.com
MIT License
177 stars 9 forks source link

Incorrect query in doc #15

Closed AndromedaPerseus closed 4 months ago

AndromedaPerseus commented 4 months ago

In the documentation the last part when you query the db, the json payload is incorrect. It should be as such:

payload = {
    "transaction": [
        {
            "query": "SELECT * FROM USERS;"
        }
    ]
}

return_response = requests.post(url, json=payload)
Sh4yy commented 4 months ago

Thank you! Just fixed this.