Added fixes

This commit is contained in:
alexey
2025-03-23 17:27:22 +03:00
parent b473cf87e1
commit 081e9bc86d
6 changed files with 64 additions and 3 deletions

View File

@@ -72,6 +72,7 @@ class DBase
id = rep_id[:id]
RepocRecips.where(repo_id: id).delete
ReposProjects.where(repo_id: id).delete
Repos.where(reponame: repo_name).delete
end
end
@@ -371,4 +372,12 @@ class DBase
def set_project_address(prj_id, address)
ProjectsProjects.where(proj_id: prj_id.to_i).update(remote_address: address)
end
def get_gits()
Repos.all
end
def delete_git_by_id(id)
Repos.where(id: id.to_i).delete
end
end