@candlerip/shared3 0.0.112 → 0.0.114
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/backend/database/model/error-log/util.d.ts +1 -6
- package/src/backend/database/model/error-log/util.js +1 -1
- package/src/backend/database/model/translation/util.d.ts +1 -6
- package/src/backend/database/model/translation/util.js +1 -1
- package/src/backend/express/index.d.ts +1 -1
- package/src/backend/express/index.js +1 -1
- package/src/backend/express/start-express-app/index.d.ts +2 -1
- package/src/backend/express/start-express-app/index.js +8 -1
- package/src/backend/index.d.ts +0 -1
- package/src/backend/index.js +0 -1
- package/src/backend/express/start-express-app/util.d.ts +0 -2
- package/src/backend/express/start-express-app/util.js +0 -8
package/package.json
CHANGED
@@ -1,7 +1,2 @@
|
|
1
1
|
import * as mongoose from 'mongoose';
|
2
|
-
|
3
|
-
export declare const ErrorLogModel: mongoose.Model<ErrorLog & mongoose.Document<unknown, any, any>, {}, {}, {}, mongoose.Document<unknown, {}, ErrorLog & mongoose.Document<unknown, any, any>> & ErrorLog & mongoose.Document<unknown, any, any> & Required<{
|
4
|
-
_id: string;
|
5
|
-
}> & {
|
6
|
-
__v: number;
|
7
|
-
}, any>;
|
2
|
+
export declare const ErrorLogModel: mongoose.Model<any, {}, {}, {}, any, any>;
|
@@ -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.model('errorLogs', ErrorLogSchema);
|
5
|
+
export const ErrorLogModel = mongoose.models.errorLogs || mongoose.model('errorLogs', ErrorLogSchema);
|
@@ -1,7 +1,2 @@
|
|
1
1
|
import * as mongoose from 'mongoose';
|
2
|
-
|
3
|
-
export declare const TranslationDbModel: mongoose.Model<Translation & mongoose.Document<unknown, any, any>, {}, {}, {}, mongoose.Document<unknown, {}, Translation & mongoose.Document<unknown, any, any>> & Translation & mongoose.Document<unknown, any, any> & Required<{
|
4
|
-
_id: string;
|
5
|
-
}> & {
|
6
|
-
__v: number;
|
7
|
-
}, any>;
|
2
|
+
export declare const TranslationDbModel: mongoose.Model<any, {}, {}, {}, any, any>;
|
@@ -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.model('translations', TranslationSchema);
|
7
|
+
export const TranslationDbModel = mongoose.models.translations || mongoose.model('translations', TranslationSchema);
|
@@ -1 +1 @@
|
|
1
|
-
export * from './start-express-app/
|
1
|
+
export * from './start-express-app/index.js';
|
@@ -1 +1 @@
|
|
1
|
-
export * from './start-express-app/
|
1
|
+
export * from './start-express-app/index.js';
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
import { StartExpressApp } from './type.js';
|
2
|
+
export declare const startExpressApp: StartExpressApp;
|
package/src/backend/index.d.ts
CHANGED
package/src/backend/index.js
CHANGED