feat(storage): add native PostgreSQL runtime and verified offline application import
Build and publish container images / images (push) Failing after 12m29s
Build and publish container images / images (push) Failing after 12m29s
This commit is contained in:
1 parent
96065d1e89
commit
0ba1dcfef0
243 files changed
+21441
-3090
No files matched your search
@@ -19,22 +19,11 @@ func (s *Server) periodicalShareTargets(r *http.Request, kind, path string) []pe
|
||||
defer cancel()
|
||||
r = r.WithContext(ctx)
|
||||
source := s.domainUUIDForRequest(r)
|
||||
rows, err := s.store.DB.QueryContext(r.Context(), `SELECT domain_uuid FROM periodical_projections WHERE source_uuid=? AND kind=? ORDER BY domain_uuid LIMIT 65`, source, kind)
|
||||
ids, err := s.store.PeriodicalProjectionTargets(r.Context(), source, kind)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
ids := []string{}
|
||||
for rows.Next() {
|
||||
var id string
|
||||
if err = rows.Scan(&id); err != nil {
|
||||
rows.Close()
|
||||
return nil
|
||||
}
|
||||
ids = append(ids, id)
|
||||
}
|
||||
err = rows.Err()
|
||||
rows.Close()
|
||||
if err != nil || len(ids) > 64 {
|
||||
if len(ids) > 64 {
|
||||
return nil
|
||||
}
|
||||
out := []periodicalShareTarget{}
|
||||
|
||||
Reference in new issue
Block a user