kindagoose
Version:
Integrate Typegoose with NestJS!
15 lines • 609 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConnectionToken = void 0;
const kindagoose_constants_1 = require("../constants/kindagoose.constants");
/**
* Get connection injection token
* @param {string} connectionName
*/
const getConnectionToken = (connectionName) => {
return connectionName && connectionName !== kindagoose_constants_1.DEFAULT_CONNECTION_NAME
? `${connectionName}Connection`
: kindagoose_constants_1.DEFAULT_CONNECTION_NAME;
};
exports.getConnectionToken = getConnectionToken;
//# sourceMappingURL=get-connection-token.js.map