subjDel.js 401 B

123456789101112131415
  1. /**
  2. * УДАЛЕНИЕ ДОПОЛНИТЕЛЬНОГО ПРЕДМЕТА ИЗ КОЛЛЕКЦИИ CURRIC
  3. * Copyright © 2019, А.М.Гольдин. Modified BSD License
  4. */
  5. "use strict";
  6. // Возвращает "success" или "none"
  7. module.exports = sbDelKey => {
  8. try {
  9. db.curric.remove({type: "subj", sbKod: sbDelKey}, {});
  10. return "success";
  11. }
  12. catch(e) {return "none";}
  13. };