Questions tagged as 'nodejs'

0
answers

Compare that a dates in timestamptz format, PostgreSQL, Sequelize

I'm having problems comparing two dates in timestamptz, I have a table with a field expiration date and I need to compare, that a date is not greater than the expiration date in the table, I'm using Sequelize let ahora = new Date(); function v...
asked by 24.12.2018 / 20:32
0
answers

{[Error: SIGNATURE_INVALID] code: 'auth / invalid-custom-token', message: 'SIGNATURE_INVALID'}

I am trying to log in to Firebase with a custom token. I followed all the steps and the decoded token would be like this, following all Google requirements: { "alg": "RS256", "typ": "JWT" } { "id": 397, "uid": "397", "email": "my@ex...
asked by 17.12.2018 / 12:18
0
answers

Problem with the NPM installer

I am trying to install ionic 4 and all the necessary dependencies in -g mode but I am presented with the following problem. When I install everything I frame the following error: npm ERR! peer dep missing: rxjs@^6.0.0, required by @a...
asked by 20.12.2018 / 00:14
0
answers

TreeView with Kendo UI and VueJs in laravel

Dear, I can not correctly develop a treeview with Kendo UI and Vuejs in laravel. To unravel the problem, I will describe what I am using. This is what the url of the laravel driver (index) returns, which I will then use with kendoUi to create...
asked by 19.12.2018 / 20:00
0
answers

passportjs always directs to fail logon

I'm trying to make a logon with passportjs but for more than I put the user and password well always directs me to the fail logon. Passport.js module.exports = function(passport) { passport.use('local', new LocalStrategy({ us...
asked by 27.11.2018 / 13:29
1
answer

Is it possible to make the average of all the values of a collection related to ObjectId?

I have these two collections: var wineSchema = new Schema({ name: { type: String }, //nombre del vino code: { type:String}, type: { type: String, enum: ['Tinto','Rosado','Bl...
asked by 17.03.2016 / 18:29
1
answer

How to read the video file that I have saved in my mongodb database

I'm trying to save a collection inside mongodb (Lesson) where among other data this collection has a video: Lesson Model 'use strict' var mongoose = require('mongoose'); var Schema = mongoose.Schema; var LessonSchema = Schema({ tit...
asked by 26.11.2018 / 21:20
1
answer

Problem with uploading nodejs file using formidable

//probando subida de imagen router.post('/uploadImage', (request, response, next) => { let formidable = require('formidable'); var form = new formidable.IncomingForm(); form.uploadDir = "../imagenes/"; form.keepExtensions = t...
asked by 07.12.2018 / 19:41
0
answers

Problem with singleton pattern Nodejs and MySql

I turn to you to see if you can help me, since I am trying to implement a singleton pattern with node, but I have a problem since I can not generate the corresponding connection with instance, if you can guide me in what I have to change or with...
asked by 08.10.2018 / 05:22
1
answer

Module connect-flash does not work

How about? I am working on a project which I need to pass messages from the server to the client, and I have decided to use the Connect-Flash module. But when the message is passed, the client does not show it. (I'm using the EJS template engine...
asked by 16.09.2018 / 22:11