db-vendo-client/parse/operator.js

14 lines
214 B
JavaScript
Raw Normal View History

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