mirror of
https://gitee.com/goploy/goploy.git
synced 2024-11-29 18:57:59 +08:00
Bug fixed: deploy page duplicate item
This commit is contained in:
parent
34a5f31fc0
commit
f8601f8d74
@ -413,7 +413,7 @@ func (p Project) GetDeployList() (Projects, error) {
|
||||
project.deploy_state,
|
||||
project.update_time`).
|
||||
From(projectTable).
|
||||
LeftJoin(fmt.Sprintf("%[1]s ON %[1]s.token = %s.last_publish_token and type = %d", publishTraceTable, projectTable, Pull)).
|
||||
LeftJoin(fmt.Sprintf("%[1]s ON %[1]s.project_id = %s.id and %[1]s.token = %s.last_publish_token and type = %d", publishTraceTable, projectTable, Pull)).
|
||||
Where(sq.Eq{
|
||||
"project.namespace_id": p.NamespaceID,
|
||||
"project.state": Enable,
|
||||
|
Loading…
Reference in New Issue
Block a user