Show original script as well, still need to add revert/switch version functionality
This commit is contained in:
2
db.py
2
db.py
@@ -114,5 +114,5 @@ ORDER BY invocation_time DESC""", [http_function_id])
|
||||
|
||||
def get_http_function_history(self, function_id):
|
||||
http_function_history = self.execute(
|
||||
'SELECT version_id, http_function_id, script_content, version_number, updated_at FROM http_functions_versions WHERE http_function_id=%s AND version_number > 1 ORDER BY version_number DESC', [function_id])
|
||||
'SELECT version_id, http_function_id, script_content, version_number, updated_at FROM http_functions_versions WHERE http_function_id=%s ORDER BY version_number DESC', [function_id])
|
||||
return http_function_history
|
||||
Reference in New Issue
Block a user