Skip to content

Commit 44635c5

Browse files
committed
Remove unused 'return *'
1 parent a9c2650 commit 44635c5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/storage/lauscher.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ export async function insertTrackMetadata(track: Track, artists: Artist[], ctx =
7474
imageUrl: track.album.images[0]?.url ?? null,
7575
}),
7676
)
77-
.returningAll()
78-
.executeTakeFirstOrThrow();
77+
.execute();
7978

8079
await ctx
8180
.insertInto("spotifyArtists")
@@ -87,8 +86,7 @@ export async function insertTrackMetadata(track: Track, artists: Artist[], ctx =
8786
})),
8887
)
8988
.onConflict(oc => oc.column("artistId").doNothing())
90-
.returningAll()
91-
.executeTakeFirstOrThrow();
89+
.execute();
9290

9391
await ctx
9492
.insertInto("spotifyTrackToArtists")
@@ -99,8 +97,7 @@ export async function insertTrackMetadata(track: Track, artists: Artist[], ctx =
9997
})),
10098
)
10199
.onConflict(oc => oc.columns(["artistId", "trackId"]).doNothing())
102-
.returningAll()
103-
.executeTakeFirstOrThrow();
100+
.execute();
104101

105102
return getTrackMetadata(track, ctx);
106103
});

0 commit comments

Comments
 (0)