Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo on Astro DB Homepage in Code Example #1011

Closed
1 task
1p0d opened this issue Mar 12, 2024 · 1 comment
Closed
1 task

Typo on Astro DB Homepage in Code Example #1011

1p0d opened this issue Mar 12, 2024 · 1 comment

Comments

@1p0d
Copy link

1p0d commented Mar 12, 2024

Astro Info

-

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

There's a typo on the new Astro DB homepage in the Auth code example on the line of the userId column definition.

Current state:

const Sessions = defineTable({
  columns: {
    id: column.number({ primaryKey: true }),
    userId: id: column.number({ references: () => User.columns.id }),
    expiresAt: column.number(),
  }
})

What's the expected result?

Expected:

const Sessions = defineTable({
  columns: {
    id: column.number({ primaryKey: true }),
    userId: column.number({ references: () => User.columns.id }),
    expiresAt: column.number(),
  }
})

Link to Minimal Reproducible Example

https://astro.build/db/

Participation

  • I am willing to submit a pull request for this issue.
@Princesseuh Princesseuh transferred this issue from withastro/astro Mar 12, 2024
@ElianCodes
Copy link
Member

Hey @1p0d, this typo should have been resolved in the meantime by #1014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants