From eda0245c2c5b64734ae49000f898a05c9d5bd408 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 2 Dec 2024 09:38:20 +0000 Subject: [PATCH] Format code --- lib/music_library/records/batch.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/music_library/records/batch.ex b/lib/music_library/records/batch.ex index de58ecd7..ec327faa 100644 --- a/lib/music_library/records/batch.ex +++ b/lib/music_library/records/batch.ex @@ -55,7 +55,9 @@ defmodule MusicLibrary.Records.Batch do def remove_artists_ids! do # Shotgun approach: remove the first 4 artists IDs from each record. # This is not a general solution, but it works as a quick fix because the record with the most artists has 3. - q = "update records set artists = json_remove(artists, '$[0].id', '$[1].id', '$[2].id', '$[3].id');" + q = + "update records set artists = json_remove(artists, '$[0].id', '$[1].id', '$[2].id', '$[3].id');" + Repo.query(q) end