[#999] getStartTimeMatrix started returning booked hours

Migrated from Redmine #999 | Author: Артур Чернієвич
Status: Closed | Priority: Normal | Created: 2023-01-17


getStartTimeMatrix started returning booked hours. Previously (a month ago) it worked correctly. And now he returns already booked hours by master id and event id.

Request: {“jsonrpc”:“2.0”,“method”:“getStartTimeMatrix”,“params”:[“2023-01-17 10:12:58.717315”,“2023-01-31 23:59:00.000”,2,2,null,null,null],“id”:127016396}

Response:
{“result”:{“2023-01-17”:[“11:00:00”,“12:00:00”,“13:00:00”,“14:00:00”,“15:00:00”,“16:00:00”,“17:00:00”],“2023-01-18”:…

But time 13:00:00 already booked. Why it started returning also booked time?
Help please

Redmine Admin wrote:

hi, make sure your provider have only one slot available

Артур Чернієвич wrote:

What does one slot mean? I have attached a photo below of what it looks like.

Артур Чернієвич wrote:

Hello,
Please check this method. There is no need to return already booked hours. You have my request and a response above. Resolve this problem.

Dmytro Bondarev wrote:

Hi,
Please provide company login.
Please let us know if it is public or admin API.

Артур Чернієвич wrote:

Company login: badshoper.

It isn’t public project. It’s for test.

Артур Чернієвич wrote:

It’s a public API

(Short original content)

Dmytro Bondarev wrote:

Hi,

As far as i see you made a bookings via Admin API with 0 duration, the booking start date and time the same as end date and time, it will not block slot.
On booking please leave end time as null or pass valid end date time.

Артур Чернієвич wrote:

I’ll try it and write you about the result. Thank you!

Артур Чернієвич wrote:

Great, this fixed my problem.

Thanks a lot!
Have a nice day!

Dmytro Bondarev wrote:

Glad to help you!

(Short original content)