@dnax/core 0.69.20 → 0.69.22

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.
package/app/index.ts CHANGED
@@ -44,10 +44,6 @@ async function runApp(config?: configRunApp, clb?: Function): Promise<Server> {
44
44
  }
45
45
 
46
46
  if (available) {
47
- console.log("\n");
48
- let spinner = ora("Initializing...").start();
49
- spinner.color = "green";
50
-
51
47
  // Load all ressouce
52
48
  await init();
53
49
  const HonoApp = HonoInstance();
@@ -78,10 +74,8 @@ async function runApp(config?: configRunApp, clb?: Function): Promise<Server> {
78
74
  process.env.SERVER_NAME || Cfg?.server?.name || "SERVER";
79
75
 
80
76
  let envName = process.env?.NODE_ENV || "dev";
81
- spinner.clear();
82
- spinner.stop();
83
- await sleep(250);
84
77
 
78
+ await sleep(150);
85
79
  let info = "";
86
80
 
87
81
  info += `${serverName}`.gray.underline.bold;
@@ -21,7 +21,10 @@ async function connectToMongo(t: Tenant) {
21
21
  resolve(t);
22
22
  })
23
23
  .catch((error) => {
24
- console.error(`Failed to connect Tenant ${t.id} : `, error?.message);
24
+ consola.error(
25
+ `Tenant: ${t.id} ,Database connection failed ❌`,
26
+ error?.message
27
+ );
25
28
  t.database.isConnected = false;
26
29
  });
27
30
 
@@ -1724,7 +1724,7 @@ class useRest {
1724
1724
  collection: collection,
1725
1725
  tenant_id: this.#tenant_id,
1726
1726
  }),
1727
- updatedAt: new Date(),
1727
+ //updatedAt: new Date(),
1728
1728
  createdAt: new Date(),
1729
1729
  },
1730
1730
  $currentDate: {
@@ -2454,7 +2454,7 @@ class useRest {
2454
2454
  watch(
2455
2455
  collection: string,
2456
2456
  pipeline: Array<any>,
2457
- options: ChangeStreamOptions
2457
+ options?: ChangeStreamOptions
2458
2458
  ): ChangeStream {
2459
2459
  return this.#tenant.database.db?.collection(collection).watch(pipeline, {
2460
2460
  allowDiskUse: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.69.20",
3
+ "version": "0.69.22",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},