mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-19 06:28:05 +00:00
Add profile name field to import
This commit is contained in:
@@ -49,7 +49,7 @@ router.post('/profiles', (req, res) => {
|
||||
function (err) {
|
||||
if (err) {
|
||||
logger.error(err)
|
||||
if (err.code === 'SQLITE_CONSTRAINT') {
|
||||
if (err.code === 'SQLITE_CONSTRAINT_UNIQUE') {
|
||||
return res.sendStatus(409)
|
||||
} else {
|
||||
return res.sendStatus(500)
|
||||
@@ -123,7 +123,7 @@ router.post('/profiles/import', (req, res) => {
|
||||
function (err) {
|
||||
if (err) {
|
||||
logger.error(err)
|
||||
if (err.code === 'SQLITE_CONSTRAINT') {
|
||||
if (err.code === 'SQLITE_CONSTRAINT_UNIQUE') {
|
||||
return res.sendStatus(409)
|
||||
} else {
|
||||
return res.sendStatus(500)
|
||||
|
||||
Reference in New Issue
Block a user