mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix: issue in mail sender.
This commit is contained in:
@@ -14,6 +14,7 @@ export default class SubscriptionRepository extends SystemRepository{
|
||||
*/
|
||||
getBySlugInTenant(slug: string, tenantId: number) {
|
||||
const key = `subscription.slug.${slug}.tenant.${tenantId}`;
|
||||
|
||||
return this.cache.get(key, () => {
|
||||
return PlanSubscription.query().findOne('slug', slug).where('tenant_id', tenantId);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user