Skip to content
Snippets Groups Projects
Commit 69e99d7a authored by Kirill Stytsenko's avatar Kirill Stytsenko
Browse files

minor ui changes

Former-commit-id: 903090ef
parent b3f96471
Branches
Tags
1 merge request!42Fixed the query service tests
<template>
<div>
<v-progress-linear v-if="loading" :color="loadingColor" :indeterminate="!error" />
<v-card>
<v-progress-linear v-if="loading" :color="loadingColor" :indeterminate="!error" />
<v-card-title>
Create Database
</v-card-title>
......
......@@ -32,12 +32,11 @@ app.post('/table_from_csv', upload.single('file'), async (req, res) => {
headers: { 'Content-Type': 'application/json' }
})
console.debug('analyzed', analysis)
analysis = await analysis.json()
if (!analysis.success) {
console.error('Failed to determine datatypes', analysis.message)
return res.json({ success: false, message: analysis.message })
analysis = JSON.parse(await analysis.json())
console.log(analysis)
if (!analysis.columns) {
return res.json({ success: false, message: 'Columns array missing' })
}
// analysis = JSON.parse(analysis)
} catch (error) {
console.error('failed to analyze', error)
return res.json({ success: false, error })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment