Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
chore(sync): collection_id when synced shouldn't be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbes committed Aug 28, 2024
1 parent 9c1c83f commit d7ce1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/syncers/metabase_collections/metabase_collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (s *Syncer) AddRestrictedTagToCollections(ctx context.Context) error {
for _, meta := range metas {
s.log.Debug().Msgf("meta: %v", meta)

if meta.SyncCompleted != nil && *meta.CollectionID != 0 {
if meta.SyncCompleted != nil && meta.CollectionID != nil && *meta.CollectionID != 0 {
collection, ok := collectionByID[*meta.CollectionID]
if !ok {
continue
Expand Down

0 comments on commit d7ce1bc

Please sign in to comment.