@candlerip/shared3 0.0.114 → 0.0.116

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
@@ -2,4 +2,4 @@ import * as mongoose from 'mongoose';
2
2
  const ErrorLogSchema = new mongoose.Schema({
3
3
  customError: { type: mongoose.Schema.Types.Mixed },
4
4
  }, { timestamps: true, versionKey: false });
5
- export const ErrorLogModel = mongoose.models.errorLogs || mongoose.model('errorLogs', ErrorLogSchema);
5
+ export const ErrorLogModel = mongoose.models?.errorLogs || mongoose.model('errorLogs', ErrorLogSchema);
@@ -4,4 +4,4 @@ const TranslationSchema = new mongoose.Schema({
4
4
  en: { type: String },
5
5
  hu: { type: String },
6
6
  }, { timestamps: true, versionKey: false });
7
- export const TranslationDbModel = mongoose.models.translations || mongoose.model('translations', TranslationSchema);
7
+ export const TranslationDbModel = mongoose.models?.translations || mongoose.model('translations', TranslationSchema);
@@ -1,4 +1,3 @@
1
- export * from './cache/index.js';
2
1
  export * from './database/index.js';
3
2
  export * from './dictionary/index.js';
4
3
  export * from './environment/index.js';
@@ -1,4 +1,3 @@
1
- export * from './cache/index.js';
2
1
  export * from './database/index.js';
3
2
  export * from './dictionary/index.js';
4
3
  export * from './environment/index.js';