mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-13 15:39:09 +00:00
FEAT: update CustomerSidebarSection and related DTOs to use object type for title; update protospack-v2 version; update from id to customerId
This commit is contained in:
@@ -70,7 +70,7 @@ export class CustomersService implements OnModuleInit {
|
||||
async getLinks(customerId: string): Promise<CustomerLinksConfig | null> {
|
||||
try {
|
||||
const result = await lastValueFrom(
|
||||
this.customerService.CustomerGetLinks({ id: customerId }),
|
||||
this.customerService.CustomerGetLinks({ customerId }),
|
||||
);
|
||||
return (result.links as CustomerLinksConfig) || null;
|
||||
} catch (err) {
|
||||
@@ -88,7 +88,7 @@ export class CustomersService implements OnModuleInit {
|
||||
try {
|
||||
return await firstValueFrom(
|
||||
this.customerService.CustomerSetLinks({
|
||||
id: customerId,
|
||||
customerId,
|
||||
links: links as CustomerSetLinksRequest['links'],
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user