17 lines
440 B
JavaScript
17 lines
440 B
JavaScript
|
|
/// <reference path="../pb_data/types.d.ts" />
|
||
|
|
migrate((db) => {
|
||
|
|
const dao = new Dao(db)
|
||
|
|
const collection = dao.findCollectionByNameOrId("gblacklist_col")
|
||
|
|
|
||
|
|
collection.updateRule = "reporter = @request.auth.id"
|
||
|
|
|
||
|
|
return dao.saveCollection(collection)
|
||
|
|
}, (db) => {
|
||
|
|
const dao = new Dao(db)
|
||
|
|
const collection = dao.findCollectionByNameOrId("gblacklist_col")
|
||
|
|
|
||
|
|
collection.updateRule = null
|
||
|
|
|
||
|
|
return dao.saveCollection(collection)
|
||
|
|
})
|