UNPKG

generator-jhipster-multitenancy

Version:
18 lines (15 loc) 436 B
const file = context => `${context.webappDir}app/core/auth/account.service.ts`; const tmpls = [ { type: 'rewriteFile', regex: true, target: context => 'getImageUrl(): string {', tmpl: context => `get${context.tenantNameUpperFirst}(): String { return this.isIdentityResolved() ? this.userIdentity.${context.tenantNameLowerFirst} : null; }\n` } ]; module.exports = { file, tmpls };