Skip to content

Commit db5cb32

Browse files
authored
Merge pull request #453 from objectstack-ai/copilot/update-documentation-for-actions-run
2 parents 987302a + 7189780 commit db5cb32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/basic/logger-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async function examplePluginLogging() {
182182
dependencies: ['database'],
183183

184184
init: async (ctx: PluginContext) => {
185-
const db = ctx.getService('db') as any;
185+
const db = ctx.getService('db') as { connected: boolean };
186186
ctx.logger.info('API plugin initialized', { dbConnected: db.connected });
187187

188188
ctx.registerService('api', { server: 'http://localhost:3000' });

0 commit comments

Comments
 (0)