Создан компонет счетчика сайта
This commit is contained in:
parent
54b92c3015
commit
95c7b64d4c
11 changed files with 425 additions and 31 deletions
20
backend/pb_migrations/1777466930_updated_site_visitors.js
Normal file
20
backend/pb_migrations/1777466930_updated_site_visitors.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_2651661972")
|
||||
|
||||
// update collection data
|
||||
unmarshal({
|
||||
"createRule": "@request.method = \"POST\""
|
||||
}, collection)
|
||||
|
||||
return app.save(collection)
|
||||
}, (app) => {
|
||||
const collection = app.findCollectionByNameOrId("pbc_2651661972")
|
||||
|
||||
// update collection data
|
||||
unmarshal({
|
||||
"createRule": ""
|
||||
}, collection)
|
||||
|
||||
return app.save(collection)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue