Clean
This commit is contained in:
parent
ea1c273de0
commit
6fa5727166
|
@ -77,7 +77,7 @@ export function processAutoColumn(
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if (!schema.subtype) {
|
if (!schema.subtype) {
|
||||||
schema = fixAutoColumnSubType(schema as AutoColumnFieldMetadata)
|
schema = fixAutoColumnSubType(schema)
|
||||||
}
|
}
|
||||||
switch (schema.subtype) {
|
switch (schema.subtype) {
|
||||||
case AutoFieldSubTypes.CREATED_BY:
|
case AutoFieldSubTypes.CREATED_BY:
|
||||||
|
@ -100,12 +100,8 @@ export function processAutoColumn(
|
||||||
break
|
break
|
||||||
case AutoFieldSubTypes.AUTO_ID:
|
case AutoFieldSubTypes.AUTO_ID:
|
||||||
if (creating) {
|
if (creating) {
|
||||||
const safeSchema = schema as AutoColumnFieldMetadata
|
schema.lastID = !schema.lastID ? BASE_AUTO_ID : schema.lastID + 1
|
||||||
|
row[key] = schema.lastID
|
||||||
safeSchema.lastID = !safeSchema.lastID
|
|
||||||
? BASE_AUTO_ID
|
|
||||||
: safeSchema.lastID + 1
|
|
||||||
row[key] = safeSchema.lastID
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue