Skip to content

Commit

Permalink
Add optional day1_ts field to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
blu3r4y committed Dec 4, 2024
1 parent 34597de commit 098d001
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/ApiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Joi from "joi";

export declare interface IApiData {
owner_id: number;
day1_ts?: number;
event: number;
members: {
[id: number]: IApiMember;
Expand Down Expand Up @@ -32,6 +33,7 @@ export declare interface IApiCompletion {
// schema to validate any wild payload
export const Schema = Joi.object({
owner_id: Joi.number().required(),
day1_ts: Joi.number().optional(),
event: Joi.number().required(),
members: Joi.object().pattern(
Joi.number(),
Expand Down

0 comments on commit 098d001

Please # to comment.