Deploy via committed dist: local Nest build, server runs with .env
Build on the developer machine without Docker, commit dist/, and run on the server with Dockerfile.dist plus compose env_file. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+55
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
||||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ChecksController = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
const checks_service_1 = require("./checks.service");
|
||||
const auth_decorators_1 = require("../common/decorators/auth.decorators");
|
||||
const current_user_decorator_1 = require("../common/decorators/current-user.decorator");
|
||||
const check_dto_1 = require("./dto/check.dto");
|
||||
let ChecksController = class ChecksController {
|
||||
checksService;
|
||||
constructor(checksService) {
|
||||
this.checksService = checksService;
|
||||
}
|
||||
findByOrder(orderId) {
|
||||
return this.checksService.findByOrder(orderId);
|
||||
}
|
||||
updateStatus(user, id, dto) {
|
||||
return this.checksService.updateStatus(id, user.id, dto);
|
||||
}
|
||||
};
|
||||
exports.ChecksController = ChecksController;
|
||||
__decorate([
|
||||
(0, common_1.Get)('admin/orders/:orderId/checks'),
|
||||
__param(0, (0, common_1.Param)('orderId')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], ChecksController.prototype, "findByOrder", null);
|
||||
__decorate([
|
||||
(0, common_1.Patch)('admin/checks/:id/status'),
|
||||
__param(0, (0, current_user_decorator_1.CurrentUser)()),
|
||||
__param(1, (0, common_1.Param)('id')),
|
||||
__param(2, (0, common_1.Body)()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object, String, check_dto_1.UpdateCheckStatusDto]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], ChecksController.prototype, "updateStatus", null);
|
||||
exports.ChecksController = ChecksController = __decorate([
|
||||
(0, common_1.Controller)(),
|
||||
(0, auth_decorators_1.AuthType)('admin'),
|
||||
__metadata("design:paramtypes", [checks_service_1.ChecksService])
|
||||
], ChecksController);
|
||||
//# sourceMappingURL=checks.controller.js.map
|
||||
Reference in New Issue
Block a user