/**async function listar(query = {}) {
    const page = parseInt(query.page);
    const pageSize = query.itemsPerPage ? parseInt(query.itemsPerPage): 10;
    const { timestamp = null } = query;

    let contasCorrentes = null;

    if (timestamp) {
      contasCorrentes = await ContaCorrente.find({ updatedAt: { $gte: new Date(timestamp) } })
        .sort({_id:-1})
        .limit(pageSize)
        .skip((page - 1) * pageSize)
        .exec();
    } else {
      console.log("ENTROU ................",pageSize,page)
      const consultaSemFiltro ={};
      contasCorrentes = await ContaCorrente.find(consultaSemFiltro)
        .limit(pageSize)
        .skip((page - 1) * pageSize)
        .sort({ _id: -1 })
        .exec();
    }

    return {
      contasCorrentes,
      timestamp: new Date(),
    };
  }*/