Skip to content

Commit 4499e1b

Browse files
feat: Add systemName to whiteLabel configuration and update category name in completeOwner use case
1 parent 72c85c9 commit 4499e1b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/application/infra/config/whiteLabel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Database } from "../database";
33
export const whiteLabel = {
44
database: (process.env.DATABASE ?? "mongodb") as Database,
55
valueMonth: "2990",
6+
systemName: "Belezix",
67
paymentDaysDue: 30,
78
gatewayPix: "woovi",
89
gatewayCreditCard: "pagarme",

src/slices/user/useCases/completeOwner/CompleteOwner.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ export const completeOwner: CompleteOwnerSignature =
122122
typeTax: "fixed",
123123
active: true,
124124
}),
125-
loadCategoryPlace({ fields: { name: "Parceiros Belezix" }, options: {} }),
125+
loadCategoryPlace({
126+
fields: { name: `Parceiros ${whiteLabel.systemName}` },
127+
options: {},
128+
}),
126129
]);
127130
const taxID = cpf?.length > 0 ? cpf : cnpj;
128131
const customer = {

0 commit comments

Comments
 (0)