Skip to content

Commit 5cb1a84

Browse files
Copilothotlong
andcommitted
Fix hardcoded field counts - use dynamic calculation
Co-authored-by: hotlong <[email protected]>
1 parent 98fc4e7 commit 5cb1a84

File tree

1 file changed

+2
-2
lines changed
  • examples/integrations/express-server/src

1 file changed

+2
-2
lines changed

examples/integrations/express-server/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ async function main() {
180180
console.log('📦 Application Configuration:');
181181
console.log(` Name: ${expressServerApp.name}`);
182182
console.log(` Objects Defined: ${Object.keys(expressServerApp.objects).length}`);
183-
console.log(` - User (4 fields)`);
184-
console.log(` - Task (7 fields)\n`);
183+
console.log(` - User (${Object.keys(expressServerApp.objects.User.fields).length} fields)`);
184+
console.log(` - Task (${Object.keys(expressServerApp.objects.Task.fields).length} fields)\n`);
185185

186186
console.log('📝 Next Steps (when @objectstack/[email protected] is fixed):');
187187
console.log(' 1. Uncomment ObjectKernel initialization');

0 commit comments

Comments
 (0)