fix: resolve TypeScript errors in merged code

- Add null check for decoded in getLIDsForPNs loop
- Fix jest mock typing in process-message.test.ts
This commit is contained in:
Claude
2026-01-21 04:24:09 +00:00
parent be1f00c5d5
commit d968205376
2 changed files with 16 additions and 10 deletions
+3 -1
View File
@@ -522,7 +522,7 @@ export class LIDMappingStore {
for (const [pnUser, items] of pendingByPnUser.entries()) {
const lidUser = this.mappingCache.get(`pn:${pnUser}`)
for (const { pn, decoded } of items) {
if (lidUser) {
if (lidUser && decoded) {
const lidUserString = lidUser.toString()
if (!lidUserString) {
this.logger.warn({ pn, lidUser }, 'Invalid or empty LID user')
@@ -548,6 +548,8 @@ export class LIDMappingStore {
failedPns.add(pn)
}
if (!decoded) continue
// Need to fetch from USync
if (this.config.debugLogging) {
this.logger.trace({ pnUser }, 'No LID mapping found, queuing for USync')