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);
|
||||
|
||||
// Update mission with integration data
|
||||
const integrationData: Prisma.MissionUncheckedUpdateInput = {
|
||||
const integrationData = {
|
||||
leantimeProjectId: results.leantimeProjectId?.toString(),
|
||||
outlineCollectionId: results.outlineCollectionId?.toString(),
|
||||
rocketChatChannelId: results.rocketChatChannelId?.toString(),
|
||||
giteaRepositoryUrl: results.giteaRepositoryUrl?.toString()
|
||||
};
|
||||
} as Prisma.MissionUpdateInput;
|
||||
|
||||
console.log('Updating mission with integration data:', integrationData);
|
||||
|
||||
|
||||
@ -5,8 +5,8 @@ export class N8nService {
|
||||
private rollbackWebhookUrl: string;
|
||||
|
||||
constructor() {
|
||||
this.webhookUrl = process.env.N8N_WEBHOOK_URL || 'https://brain.slm-lab.net/webhook-test/mission-created';
|
||||
this.rollbackWebhookUrl = process.env.N8N_ROLLBACK_WEBHOOK_URL || 'https://brain.slm-lab.net/webhook-test/mission-rollback';
|
||||
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/mission-rollback';
|
||||
console.log('N8nService initialized with webhook URLs:', {
|
||||
create: this.webhookUrl,
|
||||
rollback: this.rollbackWebhookUrl
|
||||
|
||||
Loading…
Reference in New Issue
Block a user