mirror of
https://github.com/qwertyforce/scenery.git
synced 2025-05-01 13:10:14 +00:00
Update [id].tsx
This commit is contained in:
parent
b43c9e5721
commit
5f442d117e
@ -105,7 +105,7 @@ export default function Image(props: any) {
|
||||
|
||||
|
||||
export const getStaticProps: GetStaticProps = async (context) => {
|
||||
if (context.params) {
|
||||
if (context.params.id) {
|
||||
const img = await db_ops.image_ops.find_image_by_id(parseInt((context.params.id as string)))
|
||||
if (img.length === 1) {
|
||||
const date = new Date(img[0].created_at)
|
||||
|
Loading…
x
Reference in New Issue
Block a user