Skip to content

Commit cc27d6d

Browse files
chore: remove script temporario e aplica melhorias de tipo
1 parent 92b5b74 commit cc27d6d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/read-remote-logs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ async function readRemoteLogs() {
3232
console.log(`[${new Date(data.timestamp).toLocaleString()}] ${data.context}: ${data.message}`)
3333
console.log(`UA: ${data.userAgent}\n`)
3434
})
35-
} catch (err: any) {
36-
console.error('Falha ao ler logs:', err.message)
35+
} catch (err: unknown) {
36+
const error = err as { message?: string }
37+
console.error('Falha ao ler logs:', error.message)
3738
}
3839
}
3940

src/services/staffs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export async function pushStaffToFirebase(staff: Staff): Promise<boolean> {
8686
return true
8787
}
8888

89-
const { _localId: _l, _pendingSync: _p, id: _i, ...payload } = staff
89+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
90+
const { _localId, _pendingSync, id, ...payload } = staff
9091
await withTimeout(setDoc(staffDoc, { ...payload, createdAt: staff.createdAt || Date.now() }))
9192

9293
removePendingByEmail(staff.email)

0 commit comments

Comments
 (0)