feat: Add name column to Step model
This commit is contained in:
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user