text: const connection = require('../database/connection')
  
  module.exports = {
      async create(request, response) {
          const { id } = request.body;
  
          const ong = await connection('ongs')
           .where('id', id)
           .select('name')
           .first()
  
           if(!ong) {
               return response.status(400).json({ error: 'no ong found with this id'})
           }
           
           return response.json(ong);
      }
  }