Notehub Host Firmware "current version" not updating after successful firmware update

Hello first time poster here. I have been working on using the DFU functionality to give OTA updates to my MCU. I believe that I have implemented this successfully however I am wondering if I have something missing. after the success of the update I am not seeing the current version populate in notehub. see below

Serial monitor output

dfu: successfully transferred offset:790528 len:3744
{"req":"hub.set","mode":"dfu-completed","body":{"agent":"note-arduino","compiler":"gcc 8.4.0","req_interface":"i2c","cpu_name":"esp32"}}
{}
dfu:    MD5 of image: e8485c0987de0f7b33bcab66a2123ce0
dfu: MD5 of download: e8485c0987de0f7b33bcab66a2123ce0
{"req":"dfu.status","stop":true}
{"status":"successfully downloaded","mode":"ready","on":true}
dfu: restart system
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1284
load:0x40078000,len:12836
load:0x40080400,len:3032
entry 0x400805e4
(⌐▨_▨) Welcome to Malibu!
{"req":"note.add","file":"sensors.qo","sync":false,"body":{"ambientTemp":19.75,"probeTemp":19.3125}}
{"total":2}
{"req":"dfu.status"}
{"status":"successful firmware update","mode":"completed","on":true}

I am not sure if this is a bug or if I am doing something wrong. any help would be greatly appreciated.

I figure out my issue. It appears reporting the firmware version does not happen in the dfuPoll() function so it must be called in the setup function. i.e.

req = notecard.newRequest("dfu.status");
if (req != NULL) {
  JAddStringToObject(req, "version", firmwareVersion());
  notecard.sendRequest(req);
}