mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
Fix create account tool (#3295)
This commit is contained in:
parent
f403d44769
commit
dff77e1744
@ -18,7 +18,7 @@ import {
|
||||
ACCOUNT_DB,
|
||||
assignWorkspace,
|
||||
confirmEmail,
|
||||
createAccount,
|
||||
createAcc,
|
||||
createWorkspace,
|
||||
dropAccount,
|
||||
dropWorkspace,
|
||||
@ -116,7 +116,7 @@ export function devTool (
|
||||
const { mongodbUri } = prepareTools()
|
||||
return await withDatabase(mongodbUri, async (db) => {
|
||||
console.log(`creating account ${cmd.first as string} ${cmd.last as string} (${email})...`)
|
||||
await createAccount(db, productId, email, cmd.password, cmd.first, cmd.last)
|
||||
await createAcc(db, productId, email, cmd.password, cmd.first, cmd.last, true)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -459,7 +459,10 @@ export async function signUpJoin (
|
||||
return result
|
||||
}
|
||||
|
||||
async function createAcc (
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export async function createAcc (
|
||||
db: Db,
|
||||
productId: string,
|
||||
email: string,
|
||||
|
Loading…
Reference in New Issue
Block a user