fix(backend): allow non_contiguous type in time_entries
All checks were successful
Docker Build and Publish / build-and-push (push) Successful in 42s

This commit is contained in:
2026-01-12 07:45:25 -05:00
parent f0a46d8f20
commit 222339e6c5

View File

@@ -0,0 +1,17 @@
migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("time_entries")
const typeField = collection.schema.getFieldByName("type")
typeField.options.values = ["regular", "overtime", "standby", "callback", "non_contiguous"]
return dao.saveCollection(collection)
}, (db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("time_entries")
const typeField = collection.schema.getFieldByName("type")
typeField.options.values = ["regular", "overtime", "standby", "callback"]
return dao.saveCollection(collection)
})