Posts by Develop_SP • 153 points
7 posts
-
2
votes0
answers49
viewsQ: How do I get gitlab to access the ec2 instance?
i created a script to deploy at an instance of ec2. The idea is to enter the instance terminal, run a git pull and restart pm2. But when I try to access ec2 the following error appears:…
-
0
votes1
answer1002
viewsA: How to make a relationship with two items from the same table in Sequelize?
I got.... In Users makes associations so: User.associate = models => { User.belongsToMany(models.Table, { through: 'UserTable', foreignKey: 'UserId' }); User.belongsToMany(models.Table, {…
-
-1
votes1
answer1002
viewsQ: How to make a relationship with two items from the same table in Sequelize?
I have a table that holds two user Ids. The UserId and the ResponsibleId, both take from the table User. Model: module.exports = (sequelize, DataTypes) => { const Table = sequelize.define(…
-
0
votes2
answers437
viewsQ: Extract objects from an object array to create a single object with all items
Eae guys, I bugged here to solve a little problem. I have the following array: [ { cachorro: 'Bob', gato: 'Mica' }, { dono: 'Jose', dona: 'Maria }, { outros_animais: 'sim', animais: ['cavalo',…
javascriptasked Develop_SP 153 -
0
votes0
answers119
viewsQ: Promise inside Premomise does not wait Axios
Eae guys I’m having a problem, I get several objects where I mapped them, make an external query using the Axios and save your return. Let’s go to code: let savedClients =…
-
4
votes2
answers2885
viewsQ: Retry Case Gives Timeout with Axios
Eae guys, I have a little problem to give a Retry in a POST using Next case exceeds Timeout. I’m trying to implement this(https://github.com/softonic/axios-retry) library next to Axios, but it…
-
4
votes2
answers150
viewsQ: Real-time account for table generated with jQuery
I’m having trouble leaving the quantity * price multiplication in a dynamically created table. Better than explaining, it’s showing. Follow the code in jsfiddle: https://jsfiddle.net/koew1s75/ HTML…