Compare commits

..

1 Commits

Author SHA1 Message Date
a9d9aa02da fix: change get for orders
Some checks failed
platform/multy-stub/pipeline/head There was a failure building this commit
2025-01-12 10:40:50 +03:00
2 changed files with 1 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
const router = require('express').Router()
router.get('/orders', (req, res) => {
router.post('/orders', (req, res) => {
res
.status(200)
.send(require(`./json/arm-orders/success.json`))

View File

@@ -11,9 +11,6 @@ const schema = new Schema({
schema.set('toJSON', {
virtuals: true,
versionKey: false,
transform(_doc, ret) {
delete ret._id;
}
})
schema.virtual('id').get(function () {