Update Prestashop service to return ID for all valid responses
This commit is contained in:
@@ -60,7 +60,7 @@ export class PrestashopService {
|
||||
`${this.adminBase}/${resource}`,
|
||||
{ name }
|
||||
)
|
||||
.pipe(map(res => (res && typeof res.id === 'number' ? res.id : null)));
|
||||
.pipe(map(res => (res && true ? res.id : null)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user