Skip to main content

Cron (Applicable for all role)

  • File: api/src/crons/currency

  • Changes:

    • Full Deactivate
      • Mark all role skill (Flyer, Instructor ....) As Not Current
    • Partial Deactivate
      • Mark Deactivate and above level's skills AS Not Current
  • File: api/src/features/account/safety-training/service

  • Changes:

  • Function for get logbooks with particular category along with checkbox

  • Logic function for checkbox level to categories (ex. First 3 checkbox in instructor make instructor level 1 category to open)

  • Update Status to open

  • Also need below level logbooks to open (If by mistake it was not updated)

  • For trainer, military, coach it's all skill to open (Currency completed in one shot)

  • File: api/src/features/account/logbook/service/index.js

  • Changes: Remove Not current logic and its function

  • Update Multiple queries for logbook and add Not current status

  • Create script to add not current in exting logbook

  • Testing

  • Questions:

    • If logbook status is suspended and via cron it becomes Not current, Now our currency is applied so what status we need to update (If suspended then we need to create logic and it will store previous status of logbook)
    • Also It will affect suspend and unsuspend logic so we need to discuss it. Ex. Skill is suspended now it's Not current so we can suspend it again?