dat-ecosystem-archive / datBase

Open data sharing powered by Dat [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
http://datbase.org
244 stars 32 forks source link

Do not error if other keys are sent on dat publish #595

Closed joehand closed 7 years ago

joehand commented 7 years ago

The dat CLI sends all contents of dat.json to publish. This causes error if keys aren't part of what is in the table:

ERROR: insert into "dats" ("author", "description", "id", "name", "title", "url", "user_id") values ('Joe Hand', 'space for jhand to write and play', 'aa0d2f3d-00e2-4260-b054-7abbc86adcf8', 'jhand-space', 'jhand space', 'dat://ad7e5e6562e920af0ae78d20e1a6a2b599c658df46a9b73ef7951180fcd0e56d', '9d0afbf0-e0e4-41b0-b398-ba86bf419383') - SQLITE_ERROR: table dats has no column named author
okdistribute commented 7 years ago

fixed in https://github.com/datproject/dat-registry-api@6.0.3

joehand commented 7 years ago

sweet!