Clean up edit sample code

This commit is contained in:
Kevin Thomas
2022-04-14 16:39:51 -07:00
parent 0916ff314e
commit 3628dc456a
3 changed files with 83 additions and 83 deletions

View File

@@ -351,9 +351,14 @@ router.get('/profiles/:profileId', (req, res) => {
sampleQueryArgs.push(row.sample)
})
db.all(`SELECT samples.id, name, profiles_samples.volume,
fade_in as fadeIn, loop_points_enabled as loopPointsEnabled,
loop_start as loopStart, loop_end as loopEnd
db.all(`SELECT
samples.id,
name,
profiles_samples.volume,
fade_in as fadeIn,
loop_points_enabled as loopPointsEnabled,
loop_start as loopStart,
loop_end as loopEnd
FROM samples
INNER JOIN profiles_samples
ON profiles_samples.sample = samples.id