Skip to content

Commit d77179d

Browse files
author
CloudLobster
committed
fix: agents/list query wrong table name (agents → accounts)
1 parent a822cff commit d77179d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ app.get('/api/openapi.json', (c) => {
149149
app.get('/api/agents/list', async (c) => {
150150
try {
151151
const results = await c.env.DB.prepare(
152-
'SELECT handle FROM agents WHERE handle NOT LIKE \'0x%\' ORDER BY created_at DESC LIMIT 500'
152+
'SELECT handle FROM accounts WHERE handle NOT LIKE \'0x%\' ORDER BY created_at DESC LIMIT 500'
153153
).all();
154154
const handles = results.results.map((r: any) => r.handle);
155155
return c.json({ handles }, 200, { 'Cache-Control': 'public, max-age=3600' });

0 commit comments

Comments
 (0)