Skip to content

Commit

Permalink
Delete api session certs when related api session are deleted. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed Jun 10, 2024
1 parent 7c21872 commit d07dd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/db/api_session_certificate_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ func (store *ApiSessionCertificateStoreImpl) initializeLocal() {
store.AddSymbol(FieldApiSessionCertificateApiSession, ast.NodeTypeString)
store.AddSymbol(FieldApiSessionCertificateSubject, ast.NodeTypeString)
store.AddSymbol(FieldApiSessionCertificateFingerprint, ast.NodeTypeString)
store.symbolApiSession = store.AddFkSymbol(FieldApiSessionCertificateApiSession, store.stores.apiSession)
store.symbolApiSession = store.AddSymbol(FieldApiSessionCertificateApiSession, ast.NodeTypeString)
}

func (store *ApiSessionCertificateStoreImpl) initializeLinked() {
store.AddFkIndex(store.symbolApiSession, store.stores.apiSession.apiSessionCertsSymbol)
store.AddFkIndexCascadeDelete(store.symbolApiSession, store.stores.apiSession.apiSessionCertsSymbol)

Check failure on line 75 in controller/db/api_session_certificate_store.go

View workflow job for this annotation

GitHub Actions / lint

store.AddFkIndexCascadeDelete undefined (type *ApiSessionCertificateStoreImpl has no field or method AddFkIndexCascadeDelete)) (typecheck)

Check failure on line 75 in controller/db/api_session_certificate_store.go

View workflow job for this annotation

GitHub Actions / lint

store.AddFkIndexCascadeDelete undefined (type *ApiSessionCertificateStoreImpl has no field or method AddFkIndexCascadeDelete)) (typecheck)

Check failure on line 75 in controller/db/api_session_certificate_store.go

View workflow job for this annotation

GitHub Actions / lint

store.AddFkIndexCascadeDelete undefined (type *ApiSessionCertificateStoreImpl has no field or method AddFkIndexCascadeDelete)) (typecheck)

Check failure on line 75 in controller/db/api_session_certificate_store.go

View workflow job for this annotation

GitHub Actions / Build Mac OS binaries

store.AddFkIndexCascadeDelete undefined (type *ApiSessionCertificateStoreImpl has no field or method AddFkIndexCascadeDelete)

Check failure on line 75 in controller/db/api_session_certificate_store.go

View workflow job for this annotation

GitHub Actions / Build Linux binaries

store.AddFkIndexCascadeDelete undefined (type *ApiSessionCertificateStoreImpl has no field or method AddFkIndexCascadeDelete)

Check failure on line 75 in controller/db/api_session_certificate_store.go

View workflow job for this annotation

GitHub Actions / Build Windows binaries

store.AddFkIndexCascadeDelete undefined (type *ApiSessionCertificateStoreImpl has no field or method AddFkIndexCascadeDelete)

Check failure on line 75 in controller/db/api_session_certificate_store.go

View workflow job for this annotation

GitHub Actions / Fablab Smoketest

store.AddFkIndexCascadeDelete undefined (type *ApiSessionCertificateStoreImpl has no field or method AddFkIndexCascadeDelete)

Check failure on line 75 in controller/db/api_session_certificate_store.go

View workflow job for this annotation

GitHub Actions / Run Unit and Integration Tests

store.AddFkIndexCascadeDelete undefined (type *ApiSessionCertificateStoreImpl has no field or method AddFkIndexCascadeDelete)
}

func (store *ApiSessionCertificateStoreImpl) NewEntity() *ApiSessionCertificate {
Expand Down

0 comments on commit d07dd3b

Please sign in to comment.