change entity names
This commit is contained in:
@@ -10,7 +10,7 @@ export interface AdminDetailResponse {
|
||||
name: string;
|
||||
};
|
||||
permissions: string[];
|
||||
restaurant?: {
|
||||
shop?: {
|
||||
id: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
@@ -38,10 +38,10 @@ export class AdminDetailTransformer {
|
||||
name: role.name,
|
||||
},
|
||||
permissions: role.permissions.getItems().map(p => p.name) || [],
|
||||
restaurant: {
|
||||
id: role.restaurant?.id || '',
|
||||
name: role.restaurant?.name || '',
|
||||
slug: role.restaurant?.slug || '',
|
||||
shop: {
|
||||
id: role.shop?.id || '',
|
||||
name: role.shop?.name || '',
|
||||
slug: role.shop?.slug || '',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user