Skip to content

Commit

Permalink
refactor(service): devices typescript/di: add todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
restjohn committed Aug 21, 2024
1 parent 069400e commit f4198cb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export function DeviceRoutes(deviceRepo: DeviceRepository, userRepo: UserReposit
const deleted = await deviceRepo.removeById(idInPath)
const removedSessionsCount = sessionRepo.removeSessionForDevice(idInPath)
console.info(`removed ${removedSessionsCount} session(s) for device ${idInPath}`)
// TODO: the old observation model had a middleware that removed the device id from created observations,
// but do we really care that much
if (deleted) {
return res.json(deleted)
}
Expand Down

0 comments on commit f4198cb

Please sign in to comment.