Files
gamegroup2/backend/pb_migrations/1776749288_updated_game_blacklist.js
T

17 lines
440 B
JavaScript
Raw Normal View History

/// <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)
})