Skip to content

Commit

Permalink
BASIRA #253 - Updating Typesense rake task to reset schema collection…
Browse files Browse the repository at this point in the history
… name
  • Loading branch information
dleadbetter committed Nov 27, 2024
1 parent 297b873 commit 3e2fd76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tasks/typesense.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ namespace :typesense do
typesense = Typesense::Helper.create_client

schema = Typesense::Helper.load_json('typesense/schema.json')
schema['name'] = ENV['TYPESENSE_COLLECTION_NAME']

typesense.collections.create(schema)
end

Expand Down

0 comments on commit 3e2fd76

Please sign in to comment.