[+] UpdateProperties call now updates the modified the updated properties in the history.log

This commit is contained in:
Charles Le Maux 2024-08-24 13:30:25 +02:00
parent c60fab04c1
commit 0d0c655d7f

View File

@ -288,7 +288,7 @@ def update_properties(user: UserRecord, name: str, props: list[tuple[str, str]])
errors.append(message)
if len(errors) > 0:
return HTTPStatus.IM_A_TEAPOT, str(errors)
file_manager.log_action(user.uid, name, "UpdateProperties")
file_manager.log_action(user.uid, name, "UpdateProperties", str(props))
return HTTPStatus.OK, f"Successfully updated server '{name}'."