Made the corporate name being the creator's one
This commit is contained in:
@@ -79,11 +79,11 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
isVerified: true,
|
isVerified: true,
|
||||||
registrationDate: new Date(),
|
registrationDate: new Date(),
|
||||||
subscriptionExpirationDate: expiryDate || null,
|
subscriptionExpirationDate: expiryDate || null,
|
||||||
...(!!corporateCorporate && type === "corporate"
|
...((maker.type === "corporate" || maker.type === "mastercorporate") && type === "corporate"
|
||||||
? {
|
? {
|
||||||
corporateInformation: {
|
corporateInformation: {
|
||||||
companyInformation: {
|
companyInformation: {
|
||||||
name: corporateCorporate.corporateInformation?.companyInformation?.name || "N/A",
|
name: maker.corporateInformation?.companyInformation?.name || "N/A",
|
||||||
userAmount: 0,
|
userAmount: 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user