goby-database 1.0.7 → 1.0.9
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.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -784,7 +784,7 @@ class Project{
|
|
|
784
784
|
properties:JSON.stringify(properties),
|
|
785
785
|
concept_id
|
|
786
786
|
});
|
|
787
|
-
let block_id=this.db.prepare(`SELECT block_id FROM workspace_${workspace_id} ORDER BY block_id DESC`).get().
|
|
787
|
+
let block_id=this.db.prepare(`SELECT block_id FROM workspace_${workspace_id} ORDER BY block_id DESC`).get().block_id;
|
|
788
788
|
return block_id;
|
|
789
789
|
|
|
790
790
|
}
|
|
@@ -813,7 +813,7 @@ class Project{
|
|
|
813
813
|
properties:block_properties,
|
|
814
814
|
concept_id
|
|
815
815
|
})
|
|
816
|
-
|
|
816
|
+
|
|
817
817
|
return {
|
|
818
818
|
concept_id,
|
|
819
819
|
block_id
|
|
@@ -822,7 +822,7 @@ class Project{
|
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
action_remove_from_workspace_and_delete(workspace_id,block_id,blocktype,concept_id){
|
|
825
|
-
action_remove_workspace_block({workspace_id,block_id});
|
|
825
|
+
this.action_remove_workspace_block({workspace_id,block_id});
|
|
826
826
|
switch(blocktype){
|
|
827
827
|
case 'item':
|
|
828
828
|
this.action_delete_item_from_root(concept_id);
|