-
check_circle_outlineMódulo 1 | 7 clases
Introducción
expand_more -
check_circle_outlineMódulo 2 | 6 clases
Conceptos Fundamentales
expand_more -
check_circle_outlineMódulo 3 | 10 clases
Bases de Datos y CRUDs
expand_more -
check_circle_outlineMódulo 4 | 15 clases
Más allá de lo básico
expand_more-
done_all
Clase 1
Crear rutas
-
done_all
Clase 2
Controladores
-
done_all
Clase 3
Paginación
-
done_all
Clase 4
Qué es un Middleware en Express
-
done_all
Clase 5
Middleware para búsqueda individual
-
done_all
Clase 6
Configurar cloudinary
-
done_all
Clase 7
Definir archivo con secretos
-
done_all
Clase 8
Subir imágenes a cloud
-
done_all
Clase 9
Subir imágenes pt 2
-
done_all
Clase 10
Mover imágenes a la nube
-
done_all
Clase 11
Guardar información de las imágenes en la base de datos
-
done_all
Clase 12
Generar SEO URLs
-
done_all
Clase 13
Evitar colisiones con las SEO URls
-
done_all
Clase 14
Cambiar búsqueda de ID a Slug
-
done_all
Clase 15
Manejo de parámetros
-
-
check_circle_outlineMódulo 5 | 6 clases
Autenticación de usuarios
expand_more -
check_circle_outlineMódulo 6 | 5 clases
Relaciones básicas uno a muchos
expand_more -
check_circle_outlineMódulo 7 | 9 clases
Relaciones muchos a muchos
expand_more -
check_circle_outlineMódulo 8 | 11 clases
Seguridad en servicios web
expand_more
9 comentario(s)
Que tal, ¿pudieran apoyarme por favor?. Estoy teniendo problemas cuando hago el push hacia "promises". Me arroja el siguiente error: "ParallelSaveError: Can't save() the same doc multiple times in parallel".
Estoy tratando de implementar la lógica pero dentro de un array de subdocumentos, estoy atorado en el save ya que el ejemplo viene para un campo de primer nivel, y solo usan save(). Sin emargo no se como sustituir ese save por mi update de actualización de un elemento de array.
De mis cursos favoritos esta súper bueno!!!! +10
Tengo un error en el post, envio la peticion y si se guardan las imagenes en la BD y tbm se suben a cloudinary; sin embargo el post regresa un json vacio con error 500. En la consola manda lo siguiente:
(node:4016) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at validateHeader (_http_outgoing.js:500:11) at ServerResponse.setHeader (_http_outgoing.js:507:3) at ServerResponse.header (D:\Cursos\ServiciosNodeJs\Places\api\node_modules\express\lib\response.js:730:10) at ServerResponse.send (D:\Cursos\ServiciosNodeJs\Places\api\node_modules\express\lib\response.js:170:12) at ServerResponse.json (D:\Cursos\ServiciosNodeJs\Places\api\node_modules\express\lib\response.js:256:15) at Promise.all.then.results (D:\Cursos\ServiciosNodeJs\Places\api\controllers\PlacesController.js:96:13) at at process._tickCallback (internal/process/next_tick.js:160:7) (node:4016) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:4016) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Esto en la funcion saveImage() en la parte de req.place.updateAvatar(path).then .....
Como es eso posible!!? O.o
Gracias
(node:4075) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html path: uploads/4bd8eae08e4edcb37790c8ef0c4cb5d0 secure: https://res.cloudinary.com/andresnator/image/upload/v1510579845/qzkqit0icwk8ce4976wv.png (node:4075) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: this.saveImageUrl is not a function (node:4075) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Clase 28