Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def create_service(
if platform.lower() == "tistory_blog":
if not blog_name:
raise CustomException(
200,
400,
"티스토리 블로그가 존재하지않습니다.",
"NOT_FOUND_BLOG",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public ObjectNode build(Task task, Map<String, JsonNode> workflowContext) {
.ifPresent(tagsNode -> body.set("post_tags", tagsNode));
});

body.put("tag", "NAVER_BLOG");
body.put("blog_id", "wtecho331");
body.put("blog_pw", "wt505033@#");
body.put("tag", "TISTORY_BLOG");
body.put("blog_name", "hoons2641");
body.put("blog_id", "[email protected]");
body.put("blog_pw", "kdyn26*");

return body;
}
Expand Down
14 changes: 7 additions & 7 deletions apps/user-service/src/main/resources/sql/03-insert-workflow.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ INSERT INTO `task` (`id`, `name`, `type`, `parameters`) VALUES
(8, '블로그 발행 태스크', 'FastAPI', JSON_OBJECT(
'endpoint', '/blogs/publish', 'method', 'POST',
'body', JSON_OBJECT( -- { tag: str, blog_id: str, ... }
'tag', 'NAVER_BLOG',
'blog_id', 'wtecho331',
'blog_pw', 'wt505033@#',
'blog_name', '박스박스dasdsafs.',
'post_title', '박스박스dasdsafs.',
'post_content', '퉁퉁퉁퉁퉁퉁퉁사후르',
'post_tags', '[]'
'tag', 'String',
'blog_id', 'String',
'blog_pw', 'String',
'blog_name', 'String',
'post_title', 'String',
'post_content', 'String',
'post_tags', 'List'
)
))
ON DUPLICATE KEY UPDATE name = VALUES(name), type = VALUES(type), parameters = VALUES(parameters), updated_at = NOW();
Expand Down
Loading