feat(storage): add native PostgreSQL runtime and verified offline application import
Build and publish container images / images (push) Failing after 12m29s

This commit is contained in:
Anya Tokugawa committed 2026-11-15 05:47:14 +09:00
1 parent 96065d1e89
commit 0ba1dcfef0
243 files changed
+21441 -3090

No files matched your search

+7
View File
@@ -25,6 +25,9 @@ func validPushSubscription(sub webpush.Subscription) bool {
}
func (s *Server) notificationPushKeys(ctx context.Context) (private, public string, err error) {
if !s.store.SupportsNotificationPush() {
return "", "", store.ErrBackendFeatureUnavailable
}
err = s.store.DB.QueryRowContext(ctx, `SELECT private_key,public_key FROM notification_push_keys WHERE id=1`).Scan(&private, &public)
if !errors.Is(err, sql.ErrNoRows) {
return
@@ -42,6 +45,10 @@ func (s *Server) notificationPushKeys(ctx context.Context) (private, public stri
}
func (s *Server) handleNotificationPush(w http.ResponseWriter, r *http.Request, domain, owner string) {
if !s.store.SupportsNotificationPush() {
writeEventJSON(w, http.StatusServiceUnavailable, map[string]string{"error": "push disabled for this database backend"})
return
}
ctx, cancel := context.WithTimeout(r.Context(), 5*time.Second)
defer cancel()
switch r.Method {