Skip to content

Commit

Permalink
mongo repo err fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirollbas committed Dec 15, 2024
1 parent 4c8a3d7 commit 083f359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/pkg/repositories/mongo/truncate.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func (r *Repository) Truncate(ctx context.Context) error {
db := r.client.Database(r.databaseName)
collections, err := db.ListCollectionNames(ctx, bson.D{})
if err != nil {
return fmt.Errorf("unable to get collections from mongo. Err: %w", err)
return fmt.Errorf("[mongo] unable to get collections from mongo. Err: %w", err)
}

for _, collection := range collections {
Expand Down

0 comments on commit 083f359

Please sign in to comment.