feat: hook up preferences branding form

This commit is contained in:
Ahmed Bouhuolia
2024-09-28 18:44:08 +02:00
parent ca162206a3
commit 2191ad0d40
8 changed files with 74 additions and 14 deletions

View File

@@ -41,4 +41,18 @@ export default class TenantMetadata extends BaseModel {
static get tableName() {
return 'tenants_metadata';
}
/**
* Virtual attributes.
*/
static get virtualAttributes() {
return ['logoUri'];
}
/**
*
*/
public get logoUri() {
return this.logoKey ? `https://bigcapital.sfo3.digitaloceanspaces.com/${this.logoKey}` : null;
}
}