at null check for subdivision save

This commit is contained in:
Francis Cao 2023-04-13 22:59:04 -07:00
parent 7e096336ce
commit 06649c2e31

View File

@ -44,7 +44,7 @@ async function relationalQuery(data: Prisma.SessionCreateInput) {
screen, screen,
language, language,
country, country,
subdivision1: country.concat('-', subdivision1), subdivision1: subdivision1 ? country.concat('-', subdivision1) : null,
subdivision2, subdivision2,
city, city,
}, },