Skip to content

Commit

Permalink
chore(appwrite): update created at value key
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir committed Jul 19, 2024
1 parent bbecfb5 commit d6e7876
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ export default function BlogPostShow() {
<TextField value={record?.status} />
<Title level={5}>{"CreatedAt"}</Title>
<%_ if (answers["data-provider"] === "data-provider-appwrite") { _%>
<DateField value={record?.["$createdAt"]} />
<DateField value={record?.$createdAt} />
<%_ } else if (answers["data-provider"] === "data-provider-hasura") { _%>
<DateField value={record?.["created_at"]} />
<DateField value={record?.created_at} />
<%_ } else { _%>
<DateField value={record?.createdAt} />
<%_ } _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function BlogPostShow() {
timeZone: "UTC",
})}
<%_ } else if (answers["data-provider"] === "data-provider-appwrite") { _%>
{new Date(record?.["$createdAt"]).toLocaleString(undefined, {
{new Date(record?.$createdAt).toLocaleString(undefined, {
timeZone: "UTC",
})}
<%_ } else { _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function BlogPostShow() {
<%_ if (answers["data-provider"] === "data-provider-hasura") { _%>
<DateField value={record?.created_at} />
<%_ } else if (answers["data-provider"] === "data-provider-appwrite") { _%>
<DateField value={record?.["$createdAt"]} />
<DateField value={record?.$createdAt} />
<%_ } else { _%>
<DateField value={record?.createdAt} />
<%_ } _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export default function BlogPostShow() {
<TextField value={record?.status} />
<Title level={5}>{"CreatedAt"}</Title>
<%_ if (answers["data-provider"] === "data-provider-appwrite") { _%>
<DateField value={record?.["$createdAt"]} />
<DateField value={record?.$createdAt} />
<%_ } else if (answers["data-provider"] === "data-provider-hasura") { _%>
<DateField value={record?.["created_at"]} />
<DateField value={record?.created_at} />
<%_ } else { _%>
<DateField value={record?.createdAt} />
<%_ } _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function BlogPostShow() {
timeZone: "UTC",
})}
<%_ } else if (answers["data-provider"] === "data-provider-appwrite") { _%>
{new Date(record?.["$createdAt"]).toLocaleString(undefined, {
{new Date(record?.$createdAt).toLocaleString(undefined, {
timeZone: "UTC",
})}
<%_ } else { _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function BlogPostShow() {
<%_ if (answers["data-provider"] === "data-provider-hasura") { _%>
<DateField value={record?.created_at} />
<%_ } else if (answers["data-provider"] === "data-provider-appwrite") { _%>
<DateField value={record?.["$createdAt"]} />
<DateField value={record?.$createdAt} />
<%_ } else { _%>
<DateField value={record?.createdAt} />
<%_ } _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export const BlogPostShow = () => {
<TextField value={record?.status} />
<Title level={5}>{"CreatedAt"}</Title>
<%_ if (answers["data-provider"] === "data-provider-appwrite") { _%>
<DateField value={record?.["$createdAt"]} />
<DateField value={record?.$createdAt} />
<%_ } else if (answers["data-provider"] === "data-provider-hasura") { _%>
<DateField value={record?.["created_at"]} />
<DateField value={record?.created_at} />
<%_ } else { _%>
<DateField value={record?.createdAt} />
<%_ } _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const BlogPostShow = () => {
timeZone: "UTC",
})}
<%_ } else if (answers["data-provider"] === "data-provider-appwrite") { _%>
{new Date(record?.["$createdAt"]).toLocaleString(undefined, {
{new Date(record?.$createdAt).toLocaleString(undefined, {
timeZone: "UTC",
})}
<%_ } else { _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const BlogPostShow = () => {
<%_ if (answers["data-provider"] === "data-provider-hasura") { _%>
<DateField value={record?.created_at} />
<%_ } else if (answers["data-provider"] === "data-provider-appwrite") { _%>
<DateField value={record?.["$createdAt"]} />
<DateField value={record?.$createdAt} />
<%_ } else { _%>
<DateField value={record?.createdAt} />
<%_ } _%>
Expand Down

0 comments on commit d6e7876

Please sign in to comment.