update all storagelocation / unit routes to support new tables (AFLOW-23)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user