Skip to content

Commit 2497781

Browse files
committed
Minor fixes
1 parent 5e059be commit 2497781

File tree

1 file changed

+2
-2
lines changed
  • gateway/gateway-controller/pkg/storage

1 file changed

+2
-2
lines changed

gateway/gateway-controller/pkg/storage/sqlite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (s *SQLiteStorage) initSchema() error {
184184
expires_at TIMESTAMP NULL,
185185
FOREIGN KEY (api_name, api_version) REFERENCES deployments(name, version) ON DELETE CASCADE
186186
);`); err != nil {
187-
return fmt.Errorf("failed to migrate schema to version 4 (api_keys): %w", err)
187+
return fmt.Errorf("failed to migrate schema to version 5 (api_keys): %w", err)
188188
}
189189
if _, err := s.db.Exec(`CREATE INDEX IF NOT EXISTS idx_api_key ON api_keys(api_key);`); err != nil {
190190
return fmt.Errorf("failed to create api_keys key index: %w", err)
@@ -1164,7 +1164,7 @@ func (s *SQLiteStorage) UpdateAPIKey(apiKey *models.APIKey) error {
11641164
}
11651165

11661166
s.logger.Info("API key updated successfully",
1167-
zap.String(" id", apiKey.ID),
1167+
zap.String("id", apiKey.ID),
11681168
zap.String("status", string(apiKey.Status)))
11691169

11701170
return nil

0 commit comments

Comments
 (0)