goby-database 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -590,6 +590,9 @@ class Project{
590
590
  this.db.prepare(`DELETE FROM system_root WHERE id = ${id}`).run();
591
591
  }
592
592
 
593
+ action_set_root_item_value(id,value){
594
+ this.db.prepare(`UPDATE system_root set value = ? WHERE id = ?`).run(value,id);
595
+ }
593
596
 
594
597
  action_add_row(class_id,class_name){
595
598
  //first add new row to root and get id
@@ -819,7 +822,7 @@ class Project{
819
822
  }
820
823
 
821
824
  action_remove_from_workspace_and_delete(workspace_id,block_id,blocktype,concept_id){
822
- action_remove_workspace_block({workspace_id,block_id});
825
+ this.action_remove_workspace_block({workspace_id,block_id});
823
826
  switch(blocktype){
824
827
  case 'item':
825
828
  this.action_delete_item_from_root(concept_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goby-database",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "This will hold the core better-sqlite3-powered application for creating and modifying goby databases",
5
5
  "main": "index.js",
6
6
  "scripts": {