fix(medusa): Creating Product with Sales Channels disabled (#3357)

This commit is contained in:
Riqwan Thamir
2023-03-02 11:59:10 +01:00
committed by GitHub
parent 4e59129a31
commit c432481319
4 changed files with 87 additions and 4 deletions
@@ -1,8 +1,8 @@
const Scrypt = require("scrypt-kdf")
const { User } = require("@medusajs/medusa")
module.exports = async (connection, data = {}) => {
const manager = connection.manager
module.exports = async (dataSource, data = {}) => {
const manager = dataSource.manager
const buf = await Scrypt.kdf("secret_password", { logN: 1, r: 1, p: 1 })
const password_hash = buf.toString("base64")