u
This commit is contained in:
@@ -38,6 +38,13 @@ function emitStockEvents(companyId, body, result) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Array.isArray(result?.lines)) {
|
||||
for (const line of result.lines) {
|
||||
if (line?.sku) {
|
||||
emit(`article-${line.sku}`, { companyId });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user