|
|
|
@ -13,29 +13,12 @@ import resetMetaSakilaSqliteProject from './resetMetaSakilaSqliteProject';
|
|
|
|
|
const workerStatus = {}; |
|
|
|
|
|
|
|
|
|
const loginRootUser = async () => { |
|
|
|
|
try { |
|
|
|
|
const response = await axios.post( |
|
|
|
|
'http://localhost:8080/api/v1/auth/user/signin', |
|
|
|
|
{ email: 'user@nocodb.com', password: 'Password123.' }, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
return response.data.token; |
|
|
|
|
} catch (e) { |
|
|
|
|
console.log('Error in loginRootUser', e); |
|
|
|
|
const msg = |
|
|
|
|
e.response?.data?.msg || |
|
|
|
|
e.response?.data?.message || |
|
|
|
|
'Some internal error occurred'; |
|
|
|
|
const errors = e.response?.data?.errors; |
|
|
|
|
console.log('msg', msg); |
|
|
|
|
console.log('errors', errors); |
|
|
|
|
const response = await axios.post( |
|
|
|
|
'http://localhost:8080/api/v1/auth/user/signup', |
|
|
|
|
{ email: 'user@nocodb.com', password: 'Password123.' }, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
return response.data.token; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const projectTitleByType = { |
|
|
|
|