feat: line item adjustment migration script (#1255)

This commit is contained in:
Zakaria El Asri
2022-04-26 16:05:33 +02:00
committed by GitHub
parent f7386bf4b3
commit b8f1ae9ff5
6 changed files with 130 additions and 9 deletions
@@ -41,9 +41,13 @@ export default async (req, res) => {
const {
projectConfig: { jwt_secret },
} = req.scope.resolve("configModule")
req.session.jwt = jwt.sign({ customer_id: result.customer?.id }, jwt_secret!, {
expiresIn: "30d",
})
req.session.jwt = jwt.sign(
{ customer_id: result.customer?.id },
jwt_secret!,
{
expiresIn: "30d",
}
)
const customerService: CustomerService = req.scope.resolve("customerService")
const customer = await customerService.retrieve(result.customer?.id || "", {