@ordinatio/scheduling 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0 (prepared 2026-11-10)
|
|
4
|
+
|
|
5
|
+
- **Fix: the organization table now has the `settings` and `updatedAt` columns the cancellation policy needs.** `GET` and `PUT
|
|
6
|
+
/admin/policy` in `@ordinatio/scheduling-api` read and write `Organization.settings` and check `Organization.updatedAt`, but the
|
|
7
|
+
packaged schema had neither column, so both routes answered 500 on a database built from it. A new migration adds them
|
|
8
|
+
(`settings` starts as `{}` and `updatedAt` as the time of the migration for existing rows). **After upgrading, run
|
|
9
|
+
`prisma migrate deploy`** against your database before using those two routes.
|
|
10
|
+
|
|
3
11
|
## 0.5.1 (2026-10-29)
|
|
4
12
|
|
|
5
13
|
- **Fix: a weekday with no opening hours is now closed once the calendar has any hours.** Before, a calendar with hours set only for some
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -19,7 +19,11 @@ datasource db {
|
|
|
19
19
|
model Organization {
|
|
20
20
|
id String @id @default(cuid())
|
|
21
21
|
name String
|
|
22
|
+
// Organization-wide settings kept as one JSON object; the cancellation policy lives under "cancellationPolicy".
|
|
23
|
+
settings Json @default("{}")
|
|
22
24
|
createdAt DateTime @default(now())
|
|
25
|
+
// Moves on every change, which the policy route uses to refuse a save made from an out-of-date read.
|
|
26
|
+
updatedAt DateTime @default(now()) @updatedAt
|
|
23
27
|
|
|
24
28
|
appointmentTypes AppointmentType[]
|
|
25
29
|
servicePackages ServicePackage[]
|