From 8197624d5e64f02fad6115fe97d183266d5ec147 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Wed, 14 Aug 2024 20:12:24 +0200 Subject: [PATCH] Fix Google's Records.json import --- .app_version | 2 +- CHANGELOG.md | 6 ++++++ app/services/tasks/imports/google_records.rb | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.app_version b/.app_version index 56f31511..8225a4ba 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.9.10 +0.9.11 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c587bba..35bec667 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.9.11] — 2024-08-14 + +### Fixed + +- A bug where an attempt to import a Google's Records.json file was failing due to wrong object being passed to a background worker + ## [0.9.10] — 2024-08-14 ### Added diff --git a/app/services/tasks/imports/google_records.rb b/app/services/tasks/imports/google_records.rb index 37c7ab6c..f130180b 100644 --- a/app/services/tasks/imports/google_records.rb +++ b/app/services/tasks/imports/google_records.rb @@ -23,7 +23,7 @@ class Tasks::Imports::GoogleRecords private def create_import - @user.imports.create(name: @file_path, source: :google_records) + @user.imports.create(name: @file_path, source: :google_records).id end def read_file