Added getTaskById promise method