mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
[+] UpdateProperties call now updates the modified the updated properties in the history.log
This commit is contained in:
parent
c60fab04c1
commit
0d0c655d7f
@ -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}'."
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user