fix: rts create bug fix
This commit is contained in:
@@ -27,7 +27,7 @@ export async function createRts(
|
|||||||
let defaultClient = input.client;
|
let defaultClient = input.client;
|
||||||
const userInDb = await getUserWithoutPopulate(user.userId);
|
const userInDb = await getUserWithoutPopulate(user.userId);
|
||||||
if (userInDb && userInDb.orgId) {
|
if (userInDb && userInDb.orgId) {
|
||||||
defaultClient = userInDb.orgId[0].toString();
|
defaultClient = userInDb.orgId[0]?.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!input.stage) {
|
if (!input.stage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user