From 046943c25084f43db8bef0d63a82cc31cf8d65d4 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 25 Sep 2022 12:14:01 -0400 Subject: [PATCH 1/2] Fix bug with API stdin --- app/classes/web/routes/api/servers/server/stdin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/web/routes/api/servers/server/stdin.py b/app/classes/web/routes/api/servers/server/stdin.py index a52f0c0d..b6bd0c3c 100644 --- a/app/classes/web/routes/api/servers/server/stdin.py +++ b/app/classes/web/routes/api/servers/server/stdin.py @@ -26,7 +26,7 @@ class ApiServersServerStdinHandler(BaseApiHandler): # if the user doesn't have Commands permission, return an error return self.finish_json(400, {"status": "error", "error": "NOT_AUTHORIZED"}) - svr = self.controller.get_server_obj_optional(server_id) + svr = self.controller.servers.get_server_obj_optional(server_id) if svr is None: # It's in auth_data[0] but not as a Server object logger.critical( From 91e065c59c4cca726c3f7b7250e48a76566287d1 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Sun, 2 Oct 2022 19:42:55 +0100 Subject: [PATCH 2/2] Update changelog !470 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 649c921c..d8724724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ TBD ### Bug fixes - Fix traceback on basic schedule with "days" interval ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/469)) +- Fix bad method call with API stdin ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/470))
+ *(Thank you ['IWant2Tryhard'](https://github.com/MyNameTsThad) for catching that 🐛)* ### Tweaks TBD ### Lang