fix the capacity and NaN participants issue

This commit is contained in:
Asya Vee
2025-08-27 02:50:13 +04:00
parent 459289df2d
commit ff6de00988
9 changed files with 248 additions and 68 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,29 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_43114331")
// add field
collection.fields.addAt(13, new Field({
"hidden": false,
"id": "select2363381545",
"maxSelect": 1,
"name": "type",
"presentable": false,
"required": false,
"system": false,
"type": "select",
"values": [
"workshop",
"rental"
]
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_43114331")
// remove field
collection.fields.removeById("select2363381545")
return app.save(collection)
})