feat: Add name column to Step model

This commit is contained in:
Faruk AYDIN
2025-01-06 16:42:00 +03:00
parent f9731824eb
commit bc87e18d3f
16 changed files with 58 additions and 2 deletions

View File

@@ -11,12 +11,13 @@ export default async (request, response) => {
};
const stepParams = (request) => {
const { connectionId, appKey, key, parameters } = request.body;
const { connectionId, appKey, key, name, parameters } = request.body;
return {
connectionId,
appKey,
key,
name,
parameters,
};
};

View File

@@ -35,6 +35,7 @@ describe('PATCH /api/v1/steps/:stepId', () => {
connectionId: currentUserConnection.id,
appKey: 'deepl',
key: 'translateText',
name: 'Translate text',
});
await createPermission({
@@ -58,6 +59,7 @@ describe('PATCH /api/v1/steps/:stepId', () => {
parameters: {
text: 'Hello world!',
targetLanguage: 'de',
name: 'Translate text - Updated step name',
},
})
.expect(200);