This commit is contained in:
Dominik Klarkowski
2026-06-22 11:32:27 +02:00
parent bf8624c954
commit d908965c95
16 changed files with 642 additions and 103 deletions

View File

@@ -69,3 +69,15 @@ export async function getStrengthWorkout(
const collection = await getCollection();
return collection.findOne({ _id: new ObjectId(id), userId });
}
export async function setStrengthWorkoutNotes(
userId: string,
id: string,
notes: string
): Promise<void> {
const collection = await getCollection();
await collection.updateOne(
{ _id: new ObjectId(id), userId },
{ $set: { notes: notes.trim() || undefined } }
);
}