fix typo in en.json and remove trailing spaces (#8975)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
07c785e294
Коммит
0d741301a3
@@ -6428,7 +6428,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "store.sql_cluster_discovery.get_all.app_error",
|
"id": "store.sql_cluster_discovery.get_all.app_error",
|
||||||
"translation": "Failed to get all disoery rows"
|
"translation": "Failed to get all discovery rows"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "store.sql_cluster_discovery.set_last_ping.app_error",
|
"id": "store.sql_cluster_discovery.set_last_ping.app_error",
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ func (s sqlClusterDiscoveryStore) Delete(ClusterDiscovery *model.ClusterDiscover
|
|||||||
|
|
||||||
if count, err := s.GetMaster().SelectInt(
|
if count, err := s.GetMaster().SelectInt(
|
||||||
`
|
`
|
||||||
DELETE
|
DELETE
|
||||||
FROM
|
FROM
|
||||||
ClusterDiscovery
|
ClusterDiscovery
|
||||||
WHERE
|
WHERE
|
||||||
@@ -76,7 +76,7 @@ func (s sqlClusterDiscoveryStore) Exists(ClusterDiscovery *model.ClusterDiscover
|
|||||||
|
|
||||||
if count, err := s.GetMaster().SelectInt(
|
if count, err := s.GetMaster().SelectInt(
|
||||||
`
|
`
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
FROM
|
FROM
|
||||||
ClusterDiscovery
|
ClusterDiscovery
|
||||||
@@ -108,7 +108,7 @@ func (s sqlClusterDiscoveryStore) GetAll(ClusterDiscoveryType, clusterName strin
|
|||||||
if _, err := s.GetMaster().Select(
|
if _, err := s.GetMaster().Select(
|
||||||
&list,
|
&list,
|
||||||
`
|
`
|
||||||
SELECT
|
SELECT
|
||||||
*
|
*
|
||||||
FROM
|
FROM
|
||||||
ClusterDiscovery
|
ClusterDiscovery
|
||||||
@@ -134,8 +134,8 @@ func (s sqlClusterDiscoveryStore) SetLastPingAt(ClusterDiscovery *model.ClusterD
|
|||||||
return store.Do(func(result *store.StoreResult) {
|
return store.Do(func(result *store.StoreResult) {
|
||||||
if _, err := s.GetMaster().Exec(
|
if _, err := s.GetMaster().Exec(
|
||||||
`
|
`
|
||||||
UPDATE ClusterDiscovery
|
UPDATE ClusterDiscovery
|
||||||
SET
|
SET
|
||||||
LastPingAt = :LastPingAt
|
LastPingAt = :LastPingAt
|
||||||
WHERE
|
WHERE
|
||||||
Type = :Type
|
Type = :Type
|
||||||
@@ -158,7 +158,7 @@ func (s sqlClusterDiscoveryStore) Cleanup() store.StoreChannel {
|
|||||||
return store.Do(func(result *store.StoreResult) {
|
return store.Do(func(result *store.StoreResult) {
|
||||||
if _, err := s.GetMaster().Exec(
|
if _, err := s.GetMaster().Exec(
|
||||||
`
|
`
|
||||||
DELETE FROM ClusterDiscovery
|
DELETE FROM ClusterDiscovery
|
||||||
WHERE
|
WHERE
|
||||||
LastPingAt < :LastPingAt
|
LastPingAt < :LastPingAt
|
||||||
`,
|
`,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user