Update getBlogs with callback