Fix image not being included for new predicted sets
This commit is contained in:
parent
6076e0014f
commit
4199bf0058
|
@ -37,7 +37,7 @@ export default function SetForm({
|
|||
saveImage = await getSets({search: name, limit: 1, offset: 0}).then(
|
||||
([s]) => s?.image,
|
||||
);
|
||||
console.log(`${SetForm.name}.handleSubmit:`, {saveImage});
|
||||
console.log(`${SetForm.name}.handleSubmit:`, {saveImage, name});
|
||||
save({
|
||||
name,
|
||||
reps: Number(reps),
|
||||
|
|
|
@ -12,7 +12,7 @@ export const getBestSet = async (name: string): Promise<Set> => {
|
|||
GROUP BY name;
|
||||
`;
|
||||
const bestReps = `
|
||||
SELECT name, MAX(reps) as reps, unit, weight, sets, minutes, seconds
|
||||
SELECT name, MAX(reps) as reps, unit, weight, sets, minutes, seconds, image
|
||||
FROM sets
|
||||
WHERE name = ? AND weight = ?
|
||||
GROUP BY name;
|
||||
|
|
Loading…
Reference in New Issue
Block a user