From 3e2fd762fa18454f909289a22acfd3332fe90637 Mon Sep 17 00:00:00 2001 From: dleadbetter Date: Wed, 27 Nov 2024 11:24:46 -0500 Subject: [PATCH] BASIRA #253 - Updating Typesense rake task to reset schema collection name --- lib/tasks/typesense.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/typesense.rake b/lib/tasks/typesense.rake index 012f361..89aa2ee 100644 --- a/lib/tasks/typesense.rake +++ b/lib/tasks/typesense.rake @@ -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