Replaces MongoDB support with PostgreSQL (#151)

- All schemas have been rewritten to a relational model
- All services have been rewritten to accommodate the new data model
- Adds idempotency keys to core endpoints allowing you to retry requests with no additional side effects
- Adds staged jobs to avoid putting jobs in the queue when transactions abort
- Adds atomic transactions to all methods with access to the data layer

Co-authored-by: Oliver Windall Juhl <oliver@mrbltech.com>
This commit is contained in:
Sebastian Rindom
2021-01-26 10:18:09 +01:00
parent 5f819486fc
commit f1baca3cbd
499 changed files with 25909 additions and 16128 deletions

View File

@@ -5,6 +5,8 @@ export default () => {
const logger = req.scope.resolve("logger")
logger.error(err.message)
console.log(err)
let statusCode = 500
switch (err.name) {
case MedusaError.Types.NOT_ALLOWED: