fixed build
This commit is contained in:
parent
5873cde15a
commit
5e517f3773
@ -59,7 +59,7 @@
|
|||||||
"file-type-checker": "^1.0.8",
|
"file-type-checker": "^1.0.8",
|
||||||
"fp-ts": "^2.16.1",
|
"fp-ts": "^2.16.1",
|
||||||
"jsonwebtoken": "^9.0.0",
|
"jsonwebtoken": "^9.0.0",
|
||||||
"le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.137",
|
"le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.138",
|
||||||
"module-alias": "^2.2.2",
|
"module-alias": "^2.2.2",
|
||||||
"monocle-ts": "^2.3.13",
|
"monocle-ts": "^2.3.13",
|
||||||
"multer": "^1.4.5-lts.1",
|
"multer": "^1.4.5-lts.1",
|
||||||
|
@ -1823,112 +1823,112 @@ export default async function main() {
|
|||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[5],
|
contact: contacts[5],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[6],
|
contact: contacts[6],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[7],
|
contact: contacts[7],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[8],
|
contact: contacts[8],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[9],
|
contact: contacts[9],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[10],
|
contact: contacts[10],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[11],
|
contact: contacts[11],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[12],
|
contact: contacts[12],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[13],
|
contact: contacts[13],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[14],
|
contact: contacts[14],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[15],
|
contact: contacts[15],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[16],
|
contact: contacts[16],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[17],
|
contact: contacts[17],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[18],
|
contact: contacts[18],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[19],
|
contact: contacts[19],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office_membership: offices[0],
|
office: offices[0],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -2074,7 +2074,7 @@ export default async function main() {
|
|||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
office: {
|
office: {
|
||||||
connect: {
|
connect: {
|
||||||
uid: customer.office_membership!.uid!,
|
uid: customer.office!.uid!,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
contact: {
|
contact: {
|
||||||
|
@ -44,6 +44,11 @@ export default class CustomersRepository extends BaseRepository {
|
|||||||
const createArgs: Prisma.CustomersCreateArgs = {
|
const createArgs: Prisma.CustomersCreateArgs = {
|
||||||
data: {
|
data: {
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
|
office: {
|
||||||
|
connect: {
|
||||||
|
uid: customer.office!.uid,
|
||||||
|
},
|
||||||
|
},
|
||||||
contact: {
|
contact: {
|
||||||
create: {
|
create: {
|
||||||
first_name: customer.contact!.first_name,
|
first_name: customer.contact!.first_name,
|
||||||
|
@ -70,6 +70,11 @@ export const initCustomers = (customer: Customer): Promise<Customers> => {
|
|||||||
return prisma.customers.create({
|
return prisma.customers.create({
|
||||||
data: {
|
data: {
|
||||||
status: ECustomerStatus.PENDING,
|
status: ECustomerStatus.PENDING,
|
||||||
|
office: {
|
||||||
|
connect: {
|
||||||
|
uid: customer.office!.uid,
|
||||||
|
},
|
||||||
|
},
|
||||||
contact: {
|
contact: {
|
||||||
create: {
|
create: {
|
||||||
first_name: customer.contact!.first_name,
|
first_name: customer.contact!.first_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user