nl_tokens: Get metadata for a service based on the given action object .
pl_tokens: async function getMeta ( { payload , meta } , { getService } ) { debug ( 'Action: GET_META' ) const { service : serviceId , endpoint , keys } = payload const id = ` ${ serviceId } ` const service = getService ( null , serviceId ) if ( ! service ) { debug ( ` ${ serviceId } ` ) return createError ( ` ${ serviceId } ` ) } const type = service . meta const metaService = getService ( type ) if ( ! metaService ) { return createError ( ` ${ service . id } ${ service . meta } ` ) } const endpointDebug = ( endpoint ) ? ` ${ endpoint } ` : ` ${ type } ${ id } ` debug ( 'GET_META: Get meta %s for service \'%s\' on service \'%s\' at %s' , keys , service . id , metaService . id , endpointDebug ) const { response } = await metaService . send ( { type : 'GET' , payload : { keys , type , id , endpoint } , meta : { ident : meta . ident } } ) if ( response . status === 'ok' ) { const { data } = response const meta = prepareMeta ( keys , data [ 0 ] . attributes ) return { ... response , data : { <mask> : serviceId , meta } } } else { return response } }