diff --git a/examples/with-deta-base/pages/api/todos/index.js b/examples/with-deta-base/pages/api/todos/index.js index 1609a9736e8a6..f5eac468a264c 100644 --- a/examples/with-deta-base/pages/api/todos/index.js +++ b/examples/with-deta-base/pages/api/todos/index.js @@ -9,7 +9,7 @@ const handler = async (req, res) => { let respBody = {} if (method === 'GET') { - const { value: items } = await base.fetch([]).next() + const { items } = await base.fetch([]) respBody = items res.statusCode = 200 } else if (method === 'POST') {