mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 23:12:04 +00:00
fix: allow scheduled Apple Health mirrors
This commit is contained in:
1 parent
c183d1862e
commit
30e454fb83
2 files changed
+26
-1
No files matched your search
@@ -228,7 +228,10 @@ export const createMedicationSchema = z
|
||||
path: ["asNeeded"],
|
||||
})
|
||||
.refine(
|
||||
(b) => b.asNeeded === true || (!!b.schedules && b.schedules.length >= 1),
|
||||
(b) =>
|
||||
b.externalSource === "APPLE_HEALTH" ||
|
||||
b.asNeeded === true ||
|
||||
(!!b.schedules && b.schedules.length >= 1),
|
||||
{
|
||||
message: "Mindestens ein Zeitfenster",
|
||||
path: ["schedules"],
|
||||
|
||||
Reference in new issue
Block a user