diff --git a/block.go b/block.go index 50e65d0..59915d4 100644 --- a/block.go +++ b/block.go @@ -834,9 +834,9 @@ func decodeBlock(raw map[string]interface{}) (Block, error) { b = &TemplateBlock{} case BlockTypeSyncedBlock: b = &SyncedBlock{} - case BlockTypeTableBlock: + case BlockTypeTable: b = &TableBlock{} - case BlockTypeTableRowBlock: + case BlockTypeTableRow: b = &TableRowBlock{} case BlockTypeUnsupported: diff --git a/const.go b/const.go index 3bd7b79..c4e510b 100644 --- a/const.go +++ b/const.go @@ -237,8 +237,8 @@ const ( BlockTypeLinkToPage BlockType = "link_to_page" BlockTypeTemplate BlockType = "template" BlockTypeSyncedBlock BlockType = "synced_block" - BlockTypeTableBlock BlockType = "table" - BlockTypeTableRowBlock BlockType = "table_row" + BlockTypeTable BlockType = "table" + BlockTypeTableRow BlockType = "table_row" BlockTypeUnsupported BlockType = "unsupported" )