Skip to content
View asror797's full-sized avatar

Block or report asror797

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Nest.js and Prisma Nest.js and Prisma
    1
    import { Module } from "@nestjs/common";
    2
    import { PrismaService } from "./prisma.service";
    3
    
                  
    4
    @Module({
    5
      providers: [PrismaService],
  2. Bootstrap a NestJs application with ... Bootstrap a NestJs application with CORS enabled
    1
    import { INestApplication } from '@nestjs/common'
    2
    import { NestFactory } from '@nestjs/core'
    3
    import { App } from './app'
    4
    
                  
    5
    setImmediate(async (): Promise<void> => {
  3. TaskController manages HTTP requests... TaskController manages HTTP requests for tasks, logging with APILogger
    1
    import { APILogger } from '../logger/api.logger';
    2
    import { TaskService } from '../service/task.service';
    3
    
                  
    4
    export class TaskController {
    5
    
                  
  4. Fetch data client function for SQL q... Fetch data client function for SQL queries
    1
    const Fetch = async(SQL, ...params) => {
    2
       try {
    3
          const client = await pool.connect()
    4
          const { rows } = await client.query(SQL,params.length ? params : null)
    5
          return rows
  5. Telegraf.js Telegraf.js
    1
    const { Markup, Extra } = require('telegraf');
    2
    
                  
    3
    Extra.markup(Markup.inlineKeyboard([
    4
      [
    5
        Markup.callbackButton('name button', 'data_button'),