fix API response bug
This commit is contained in:
parent
5bdcf59dbd
commit
fc5fc14b3f
@ -85,10 +85,10 @@ class FormDatabase extends Controller {
|
||||
|
||||
// Fallback for backwards compat
|
||||
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()
|
||||
return x
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
return res.api(columns)
|
||||
|
Loading…
Reference in New Issue
Block a user