@dnax/core 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -816,6 +816,7 @@ class useRest {
816
816
  options?: Omit<optionCb, "elementAt">
817
817
  ): Promise<object | null> {
818
818
  return new Promise(async (resolve, reject) => {
819
+ if (!id) fn.error("Id is required", 400);
819
820
  try {
820
821
  let meta = {
821
822
  total: 0,
package/lib/cron/index.ts CHANGED
@@ -20,7 +20,7 @@ async function initCron() {
20
20
  let cronOpt = inject.default as cronConfig;
21
21
  if (cronOpt?.enabled) {
22
22
  let cronTask = new Cron(cronOpt.pattern, {
23
- ...cleanDeep(cronOpt.options),
23
+ ...cleanDeep(cronOpt?.options),
24
24
  });
25
25
  let cronTaskExec = cronOpt?.exec || cronOpt?.handler;
26
26
  if (cronTaskExec && typeof cronTaskExec == "function") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.48.0",
3
+ "version": "0.49.0",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,7 +41,6 @@
41
41
  "joi": "17.13.3",
42
42
  "json-joy": "16.8.0",
43
43
  "jsonwebtoken": "^9.0.2",
44
- "libreoffice-convert": "^1.6.0",
45
44
  "mime-types": "^2.1.35",
46
45
  "mingo": "^6.5.0",
47
46
  "moment": "^2.30.1",