Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor adapter/db/order includeBodyQuantityProductInProductDb function #9

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

panhavsilva
Copy link
Owner


strategy:
matrix:
node-version: [14.x]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aqui já podemos usar a v16, que é LTS atual :)
Ou até a v18, se o GitHub Actions suportar (tem que ver se suporta)

# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se não me engano, essa lib já está na v3, dá pra atualizar tbem :D

/* eslint-disable no-unused-vars */
namespace NodeJS {
interface ProcessEnv {
MONGO_URL: string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Essa interface pode ficar aqui por enquanto, mas depois vamos fazer uma validação decente nas env vars pra ficar mais seguro xD

import {
createCashback as createCashbackCore,
CreateCashback,
} from '../use-cases/create-cashback'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aqui seria bom importar usando @

import {
CreateOrder,
createOrder as createOrderCore,
} from '../use-cases/create-order'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import com @

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants