File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
gateway/gateway-controller/pkg/storage Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments