Hi guys, suppose I've this array of arrays: [ [ { '00': 3.3406433795989217 }, { '01': 7.371215599659567 }, { '02': 8.216563231723296 }, { '03': 6.1683103254...
what is the correct way to extend the express js interface? I have this route: router.get('/', auth, async (req: AuthRequest, res: Response) => { which use this interface i...
Hi, how can I execute a script in another directory? this is my project root: backend frontend package.json inside the package.json I have this: "scripts": { "backend_de...
I have a problem with typescript type. Essentially I have created a Telegram bot using: const bot = new Telegraf<TelegrafContext>(BOT_TOKEN); I assigned to bot.context the Ty...
Hi there, I get this error: Expected an assignment or a function call and instead saw an expression, what I did wrong? <li className="nav-item categories"> {sections.map((sc,...
Hi guys, I want have public and writable folder to be persistent on my system, in this way I doesn't lose the image uploaded by the user, so I did this: php-fpm: contai...
@TRGWII I have a question about my API response which is something like that: { success: true, data: [ { deleted: false, id: '01c2313c-13eb-4bb6-86fd-89...
@TRGWII do you know if is possible read process.env variable from a root script? Eg: I have ormconfig.js with the following content: const path = require('path'); const base...
Hi, I would like to change the object category (ctg) associated to a section inside an iteration, i tried to do this but the object is still the same: for (const [i, sec] of ...
Hi, what is the correct way to debug a submit form? Using Ajax I can read the error in the response, but with the form I can't 'cause the page is getting refreshed to each sub...
I also have a DatabaseProvider class which contains this method: public static async getConnection(): Promise<Connection> { I would like to assign the connection in the bot i...
I have a question about nginx and docker. When I push my changes to the repo, the pipeline is triggered and the Docker container is rebuilded. For 5 minutes or so, my app goes...
But what do u suggest?
I'm using typeorm in ts, so I've created a class in my API that handle all the routes as: import {Customer} from '../models/customer'; import {DatabaseProvider} from '../data...
could someone help me to dockerize this project? https://github.com/agungsugiarto/boilerplate
How can I remove the coalesce operator? I'm not using c#8 : first = (T)(tIsString ? stringValue : JsonConvert.DeserializeObject<T>(property.Value.ToString()) ?? default(T));
I'm also trying to extend the express js request declaring an interface in custom.d.ts file: export interface Request { user: { id: string } } but when I import it: ...
at this point is possible render the modal only when the div exists?
Hi guys I have a little question. I wrote a simple module: declare module 'nodejs-sdk' { import { Customers } from "./resources/customers"; export class Client { ...
Hi guys, I want to display a Row each three articles, so I did: {articles.map((art, i) => (i + 1) % 3 === 0 ? ( <Row> {" "} ...