mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-25 16:14:02 +00:00
作成完了前に処理が進行してしまわないように
This commit is contained in:
parent
bc71efac29
commit
b491063331
|
@ -13,7 +13,7 @@ async function registUser(email: string, password: string, homeGroupId?: string)
|
|||
|
||||
if (!homeGroupId) { // TODO: 作成失敗したときにHomeGroupだけ残るのを防ぐ
|
||||
logger.info("HomeGroup is not specified, creating new HomeGroup");
|
||||
createHomeGroup(email).then((homeGroup) => { return homeGroup.id })
|
||||
await createHomeGroup(email).then((homeGroup) => { return homeGroup.id })
|
||||
.then((id) => {
|
||||
if (!id) {
|
||||
logger.error("Create HomeGroup failed, id is undefined")
|
||||
|
|
Loading…
Reference in New Issue
Block a user