n8n int cleaning
This commit is contained in:
parent
a4a1ac9b26
commit
241fa4455c
@ -242,12 +242,12 @@ export async function POST(request: Request) {
|
|||||||
console.log('Processing workflow results:', results);
|
console.log('Processing workflow results:', results);
|
||||||
|
|
||||||
// Update mission with integration data
|
// Update mission with integration data
|
||||||
const integrationData: Prisma.MissionUncheckedUpdateInput = {
|
const integrationData = {
|
||||||
leantimeProjectId: results.leantimeProjectId?.toString(),
|
leantimeProjectId: results.leantimeProjectId?.toString(),
|
||||||
outlineCollectionId: results.outlineCollectionId?.toString(),
|
outlineCollectionId: results.outlineCollectionId?.toString(),
|
||||||
rocketChatChannelId: results.rocketChatChannelId?.toString(),
|
rocketChatChannelId: results.rocketChatChannelId?.toString(),
|
||||||
giteaRepositoryUrl: results.giteaRepositoryUrl?.toString()
|
giteaRepositoryUrl: results.giteaRepositoryUrl?.toString()
|
||||||
};
|
} as Prisma.MissionUpdateInput;
|
||||||
|
|
||||||
console.log('Updating mission with integration data:', integrationData);
|
console.log('Updating mission with integration data:', integrationData);
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,8 @@ export class N8nService {
|
|||||||
private rollbackWebhookUrl: string;
|
private rollbackWebhookUrl: string;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.webhookUrl = process.env.N8N_WEBHOOK_URL || 'https://brain.slm-lab.net/webhook-test/mission-created';
|
this.webhookUrl = process.env.N8N_WEBHOOK_URL || 'https://brain.slm-lab.net/webhook/mission-created';
|
||||||
this.rollbackWebhookUrl = process.env.N8N_ROLLBACK_WEBHOOK_URL || 'https://brain.slm-lab.net/webhook-test/mission-rollback';
|
this.rollbackWebhookUrl = process.env.N8N_ROLLBACK_WEBHOOK_URL || 'https://brain.slm-lab.net/webhook/mission-rollback';
|
||||||
console.log('N8nService initialized with webhook URLs:', {
|
console.log('N8nService initialized with webhook URLs:', {
|
||||||
create: this.webhookUrl,
|
create: this.webhookUrl,
|
||||||
rollback: this.rollbackWebhookUrl
|
rollback: this.rollbackWebhookUrl
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user