Skip to content

Commit

Permalink
Add Created/Updated Fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Jan 30, 2025
1 parent e3913f4 commit 3962d5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/lib/models/Layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export const Layer_Config = Type.Object({

export const AugmentedLayerIncoming = Type.Object({
layer: Type.Integer(),
created: Type.String(),
updated: Type.String(),
config: Layer_Config,
cron: Type.Union([Type.String(), Type.Null()]),
webhooks: Type.Boolean(),
Expand Down Expand Up @@ -129,6 +131,8 @@ export default class LayerModel extends Modeler<typeof Layer> {

incoming: jsonBuildObject({
layer: LayerIncoming.layer,
created: LayerIncoming.created,
updated: LayerIncoming.updated,
cron: LayerIncoming.cron,
stale: LayerIncoming.stale,
webhooks: LayerIncoming.webhooks,
Expand Down Expand Up @@ -177,6 +181,8 @@ export default class LayerModel extends Modeler<typeof Layer> {

incoming: jsonBuildObject({
layer: LayerIncoming.layer,
created: LayerIncoming.created,
updated: LayerIncoming.updated,
cron: LayerIncoming.cron,
stale: LayerIncoming.stale,
webhooks: LayerIncoming.webhooks,
Expand Down

0 comments on commit 3962d5d

Please sign in to comment.