Authentication #170
4 changed files with 25 additions and 6 deletions
20
migrations/Add-FileId-To-Claim.js
Normal file
20
migrations/Add-FileId-To-Claim.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
module.exports = {
|
||||
up: (queryInterface, Sequelize) => {
|
||||
// logic for transforming into the new state
|
||||
return queryInterface.addColumn(
|
||||
'Claim',
|
||||
'FileId',
|
||||
{
|
||||
type : Sequelize.STRING,
|
||||
allowNull: true,
|
||||
}
|
||||
);
|
||||
},
|
||||
down: (queryInterface, Sequelize) => {
|
||||
// logic for reverting the changes
|
||||
return queryInterface.removeColumn(
|
||||
'Claim',
|
||||
'FileId'
|
||||
);
|
||||
},
|
||||
};
|
|
@ -54,8 +54,6 @@
|
|||
width: 90%
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* show routes */
|
||||
.show-asset {
|
||||
width: 100%;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
body, button, input, textarea, label, select, option {
|
||||
font-family: serif;
|
||||
}
|
||||
|
||||
/* Containters */
|
||||
|
||||
.wrapper {
|
||||
|
@ -170,11 +171,11 @@ input:-webkit-autofill {
|
|||
}
|
||||
|
||||
.input-text--primary {
|
||||
border-bottom: 1px solid grey;
|
||||
border-bottom: 1px solid blue;
|
||||
}
|
||||
|
||||
.input-text--primary:focus {
|
||||
border-bottom: 1px solid blue;
|
||||
border-bottom: 1px solid grey;
|
||||
}
|
||||
|
||||
/* MEDIA QUERIES */
|
||||
|
|
|
@ -30,7 +30,7 @@ module.exports = (app) => {
|
|||
if (result === true) {
|
||||
res.status(200).json(true);
|
||||
} else {
|
||||
logger.debug(`Rejecting publish request because ${params.name} has already been published via spee.ch`);
|
||||
logger.debug(`Rejecting '${params.name}' because that name has already been claimed on spee.ch`);
|
||||
res.status(200).json(false);
|
||||
}
|
||||
})
|
||||
|
@ -45,7 +45,7 @@ module.exports = (app) => {
|
|||
if (result === true) {
|
||||
res.status(200).json(true);
|
||||
} else {
|
||||
logger.debug(`Rejecting publish request because ${params.name} has already been published via spee.ch`);
|
||||
logger.debug(`Rejecting '${params.name}' because that channel has already been claimed on spee.ch`);
|
||||
res.status(200).json(false);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue