feat: Introduce step serializer
This commit is contained in:
15
packages/backend/src/serializers/step.js
Normal file
15
packages/backend/src/serializers/step.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const stepSerializer = (step) => {
|
||||
return {
|
||||
id: step.id,
|
||||
type: step.type,
|
||||
key: step.key,
|
||||
appKey: step.appKey,
|
||||
iconUrl: step.iconUrl,
|
||||
webhookUrl: step.webhookUrl,
|
||||
status: step.status,
|
||||
position: step.position,
|
||||
parameters: step.parameters,
|
||||
};
|
||||
};
|
||||
|
||||
export default stepSerializer;
|
Reference in New Issue
Block a user