regNameSurnameMandatory
askUSernameTelegramToTheReg @ davanti all'username
This commit is contained in:
@@ -152,7 +152,7 @@ router.post('/import', authenticate, async (req, res) => {
|
||||
recGas = await Gasordine.findOne({ idapp, name: product.gas_name }).lean();
|
||||
}
|
||||
|
||||
if (!recGas) {
|
||||
if (!recGas && !!product.gas_name) {
|
||||
recGas = new Gasordine({ idapp, name: product.gas_name, active: true });
|
||||
// Non esiste questo GAS, quindi lo creo !
|
||||
ris = await recGas.save();
|
||||
|
||||
Reference in New Issue
Block a user