Skip to content

Commit

Permalink
Added BeforeAppendModelHook interface check
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna committed Sep 9, 2024
1 parent 324f109 commit 8de0239
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/storage/token_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func (TokenMetadata) TableName() string {
return "token_metadata"
}

var _ bun.BeforeAppendModelHook = (*TokenMetadata)(nil)

// BeforeAppendModel -
func (tm *TokenMetadata) BeforeAppendModel(ctx context.Context, query bun.Query) error {
switch query.(type) {
Expand Down

0 comments on commit 8de0239

Please sign in to comment.