.on()
- process(requestData, body) {
+ async process(requestData, body) {
this.requestData = { ...requestData, ...(JSON.parse(body) || {}) };
if (!this.requestData.action) {
this.sendValidationError('Action is required');
}
- this.getAuthToken();
+ await this.getAuthToken();
switch (this.requestData.action) {
async getOffices() {
- return this.httpRequest('deliverypoints', this.requestData);
+ return await this.httpRequest('deliverypoints', this.requestData);
}
async calculate() {
- return this.httpRequest('calculator/tarifflist', this.requestData, false, true);
+ return await this.httpRequest('calculator/tarifflist', this.requestData, false, true);
}
Реальная проблема в том, как проверить, сколько физического места занимает папка пользователей "users"?
<div class="d-flex align-items-end">
<div> 1 </div>
<div> 2 </div>
</div>
------------------------------------------------
| -------------------- |
| | 1 | | .d-flex.align-items-end
| | | -------------------- |
| | | | 2 | |
| | | | | |
| -------------------- -------------------- |
------------------------------------------------
Это невозможно в принципе. Если мы получаем набор несвязанных данных, то видео поток их них мы не сможем выстроить ни при каких условиях.
Либо ваше ТЗ слишком скудное, и информации не достаточно.