@dynamatix/gb-schemas 0.24.4 → 0.24.6
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/package.json +1 -1
- package/shared/index.js +0 -1
- package/shared/error-log.model.js +0 -13
package/package.json
CHANGED
package/shared/index.js
CHANGED
|
@@ -9,5 +9,4 @@ export { default as TaskModel} from './task.model.js';
|
|
|
9
9
|
export { default as ApprivoSyncJourneyModel } from './apprivo-sync-journey.model.js';
|
|
10
10
|
export { default as JobRunModel } from './job-run.model.js';
|
|
11
11
|
export { default as TaskDocumentTypeModel} from './task-document.model.js'
|
|
12
|
-
export { default as ErrorLogModel} from './error-log.model.js'
|
|
13
12
|
export { default as DocumentTypeModel } from './document-type-model.js';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
|
|
3
|
-
const errorSchema = new mongoose.Schema({
|
|
4
|
-
error_message: { type: String, required: true },
|
|
5
|
-
status_code: { type: Number, required: true },
|
|
6
|
-
route: { type: String, required: true },
|
|
7
|
-
user_agent: { type: String, required: true },
|
|
8
|
-
stack_trace: [{ type: String }]
|
|
9
|
-
},
|
|
10
|
-
{ timestamps: true });
|
|
11
|
-
|
|
12
|
-
const ErrorLogModel = mongoose.model("Error_Log", errorSchema);
|
|
13
|
-
export default ErrorLogModel;
|