db-vendo-client/parse/operator.js

13 lines
223 B
JavaScript

'use strict'
const slugg = require('slugg')
const parseOperator = (profile, a) => {
return {
type: 'operator',
id: slugg(a.name), // todo: find a more reliable way
name: a.name
}
}
module.exports = parseOperator