fix: retain namespace when listing backups
Build and publish Docker image / build-and-publish (push) Successful in 11s
Build and publish Docker image / build-and-publish (push) Successful in 11s
This commit is contained in:
1 parent
b8be6ad2fb
commit
f1c4c5f29a
2 files changed
+26
-2
No files matched your search
@@ -2829,7 +2829,7 @@ async def handle_get_backups(client_id, data):
|
||||
return
|
||||
|
||||
try:
|
||||
get_server_access_and_namespace(server_id, client_info['user_id'])
|
||||
namespace, _ = get_server_access_and_namespace(server_id, client_info['user_id'])
|
||||
with database_connection() as conn:
|
||||
cursor = conn.cursor()
|
||||
cursor.execute('SELECT * FROM backups WHERE server_id = ? ORDER BY created_at DESC', (server_id,))
|
||||
|
||||
Reference in new issue
Block a user