feat: update dose retrieval to remove 30-day limit and add sharedBy field in share routes

This commit is contained in:
Daniel Volz
2025-12-29 20:00:25 +01:00
parent c378d373d8
commit 48ee9af536
4 changed files with 13 additions and 22 deletions
+2 -1
View File
@@ -3390,6 +3390,7 @@ type SharedMedication = {
type SharedScheduleData = {
takenBy: string;
sharedBy: string | null;
scheduleDays: number;
medications: SharedMedication[];
stockThresholds?: {
@@ -4086,7 +4087,7 @@ function SharedSchedule() {
</div>
<footer className="shared-schedule-footer">
<p>{t('share.generatedBy')} MedAssist</p>
<p>{t('share.generatedBy')} {data?.sharedBy && <><strong>{data.sharedBy}</strong> · </>}<a href="/">MedAssist</a></p>
</footer>
</div>