fix API response bug

This commit is contained in:
garrettmills 2020-02-19 01:18:45 -06:00
parent 5bdcf59dbd
commit fc5fc14b3f

View File

@ -85,10 +85,10 @@ class FormDatabase extends Controller {
// Fallback for backwards compat // Fallback for backwards compat
if ( columns.length < 1 ) { if ( columns.length < 1 ) {
return (await ColumnDef.find({DatabaseId: db.UUID})).map(x => { return res.api((await ColumnDef.find({DatabaseId: db.UUID})).map(x => {
x.additionalData = x.data() x.additionalData = x.data()
return x return x
}) }))
} }
return res.api(columns) return res.api(columns)