UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

16 lines 692 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConnectionAction = void 0; const AbstractAction_1 = require("./AbstractAction"); const enums_1 = require("../../types/enums"); class ConnectionAction extends AbstractAction_1.AbstractAction { run(instance) { if (!Reflect.hasMetadata(enums_1.REFLECT_METADATA.DATABASE_CONNECTION, instance)) { return; } const propertyKey = Reflect.getMetadata(enums_1.REFLECT_METADATA.DATABASE_CONNECTION, instance); instance[propertyKey] = this.injector.context.getConnection(); } } exports.ConnectionAction = ConnectionAction; //# sourceMappingURL=ConnectionAction.js.map