Update GetExecution function signature and SQL query

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-08-04 18:57:14 -06:00
parent 03e267dddd
commit 3f2711685a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,6 +9,6 @@ import (
func (s *Service) GetExecution(
ctx context.Context, id uuid.UUID,
) (dbgen.Execution, error) {
) (dbgen.ExecutionsServiceGetExecutionRow, error) {
return s.dbgen.ExecutionsServiceGetExecution(ctx, id)
}
@@ -5,4 +5,4 @@ SELECT
FROM executions
INNER JOIN backups ON backups.id = executions.backup_id
INNER JOIN databases ON databases.id = backups.database_id
WHERE id = @id;
WHERE executions.id = @id;