Skip to content

Commit c333eb0

Browse files
committed
fix(desk/allocations): name fetch calling wrong driver
1 parent 354b654 commit c333eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/place/desk/allocations.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class Place::Desk::Allocations < PlaceOS::Driver
252252
if email = allocation.email.presence
253253
# look up users name
254254
user_name = begin
255-
staff_api.calendar(email).get["name"].as_s
255+
calendar.get_user(email).get["name"].as_s
256256
rescue error
257257
logger.error(exception: error) { "failed to find allocation name for #{allocation.email}" }
258258
email.split("@")[0].split(' ').map(&.capitalize).join(' ')

0 commit comments

Comments
 (0)