db-vendo-client/parse/operator.js

14 lines
223 B
JavaScript
Raw Normal View History

2017-11-11 22:35:41 +01:00
'use strict'
const slugg = require('slugg')
2017-11-12 01:23:34 +01:00
const parseOperator = (profile, a) => {
2017-11-11 22:35:41 +01:00
return {
type: 'operator',
id: slugg(a.name), // todo: find a more reliable way
name: a.name
}
}
module.exports = parseOperator