Commit cdd04192 authored by Arthur D's avatar Arthur D
Browse files

remove project field feed_uuid

parent f3da7d41
......@@ -22,7 +22,6 @@ function * createTables() {
\`id\` CHAR(36) NOT NULL,
\`name\` CHAR(255) NOT NULL,
\`config\` TEXT NOT NULL,
\`feed_uuid\` CHAR(36) NOT NULL,
\`instance_id\` CHAR(36) NOT NULL,
PRIMARY KEY (\`id\`),
UNIQUE INDEX \`id_UNIQUE\` (\`id\` ASC)
......
......@@ -7,9 +7,8 @@ function* post() {
.notBlank()
.isLength(1, 255).value,
config: this.checkBody('config').eq('[object Object]').value,
feed_uuid: this.checkBody('feed_uuid').isUUID().value,
project_id: this.checkBody('project_id').isInt().value,
instance_id: this.checkParams('instanceId').isUUID().value
instance_id: this.checkParams('instanceId').isUUID().value
};
const str = JSON.stringify(project);
......@@ -26,8 +25,8 @@ function* post() {
yield this.db.queryAsync(
`UPDATE \`${
this.tablesNames.PROJECTS
}\` SET name = ?, feed_uuid = ?, project_id = ?, config = ?, instance_id = ? WHERE id = ?`,
[project.name, project.feed_uuid, project.project_id, project.config, project.instance_id, project.id]
}\` SET name = ?, project_id = ?, config = ?, instance_id = ? WHERE id = ?`,
[project.name, project.project_id, project.config, project.instance_id, project.id]
);
this.logger.log(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment