Files
medusa-store/packages/medusa/src/services/transaction.js
Sebastian Rindom f1baca3cbd 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>
2021-01-26 10:26:14 +01:00

16 lines
290 B
JavaScript

import { BaseService } from "medusa-interfaces"
import mongoose from "mongoose"
import _ from "lodash"
class TransactionService extends BaseService {
constructor({}) {
super()
}
async createSession() {
return mongoose.startSession()
}
}
export default TransactionService