Skip to content

Commit

Permalink
feat: update api rules
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Lauber <[email protected]>
  • Loading branch information
janlauber committed Jun 18, 2023
1 parent 48d7cb0 commit 137f250
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions kubelab-backend/pb_migrations/1687116582_updated_exercises.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("s4f0lpy3ibkgfqp")

collection.createRule = ""
collection.updateRule = ""
collection.deleteRule = ""

return dao.saveCollection(collection)
}, (db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("s4f0lpy3ibkgfqp")

collection.createRule = null
collection.updateRule = null
collection.deleteRule = null

return dao.saveCollection(collection)
})
19 changes: 19 additions & 0 deletions kubelab-backend/pb_migrations/1687116588_updated_labs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("a1s1vqlm7141lcr")

collection.createRule = ""
collection.updateRule = ""
collection.deleteRule = ""

return dao.saveCollection(collection)
}, (db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("a1s1vqlm7141lcr")

collection.createRule = null
collection.updateRule = null
collection.deleteRule = null

return dao.saveCollection(collection)
})

0 comments on commit 137f250

Please sign in to comment.