update all storagelocation / unit routes to support new tables (AFLOW-23)

This commit is contained in:
2023-07-10 15:34:04 +02:00
parent a79a1eab81
commit 1605987952
5 changed files with 189 additions and 84 deletions

View File

@ -72,7 +72,7 @@ export function parseIntRelation(data: string, relation_name: string = 'id', doN
// This can be used by prisma to connect relations
// If the incoming data is null or empty, return a prisma disconnect object instead of a connect one
if (data === null || data === '') {
if (data === null || data === '' || data === "undefined") {
if (doNotDisconnect) {
return undefined;
}