Mongoose model: Setting
Source: src/models/setting.model.ts
Interface: ISetting

Fields

Behaviour

  • Only one document is expected in the collection.
  • SettingController.getSetting returns the first document found.
  • updateSetting upserts if no document exists.
  • Controllers check isDummyOrder at runtime to choose Order vs DummyOrder model and skip Kite API calls.