diff --git a/src/models/organisationModel.ts b/src/models/organisationModel.ts index baee982..93abf04 100644 --- a/src/models/organisationModel.ts +++ b/src/models/organisationModel.ts @@ -73,6 +73,10 @@ const organisationSchema = new Schema({ type: String, required: false, }, + Instagram: { + type: String, + required: false, + }, Addresses: [AddressSchema], Notes: { type: [NoteSchema], diff --git a/src/schemas/organisationSchema.ts b/src/schemas/organisationSchema.ts index bfbbad7..d0e5559 100644 --- a/src/schemas/organisationSchema.ts +++ b/src/schemas/organisationSchema.ts @@ -79,7 +79,8 @@ export const OrganisationSchema = z.object({ Facebook: z.preprocess(preprocessNullableString, z.string().url('Invalid Facebook URL').optional().or(z.literal(''))), Twitter: z.preprocess(preprocessNullableString, z.string().url('Invalid Twitter URL').optional().or(z.literal(''))), Bluesky: z.preprocess(preprocessNullableString, z.string().url('Invalid Bluesky URL').optional().or(z.literal(''))), - + Instagram: z.preprocess(preprocessNullableString, z.string().url('Invalid Instagram URL').optional().or(z.literal(''))), + // Locations Addresses: z.preprocess(preprocessJSON, z.array(AddressSchema).optional().default([])), diff --git a/src/types/organisations/IOrganisation.ts b/src/types/organisations/IOrganisation.ts index 687b314..e365221 100644 --- a/src/types/organisations/IOrganisation.ts +++ b/src/types/organisations/IOrganisation.ts @@ -22,6 +22,7 @@ export interface IOrganisation extends Document { Facebook?: string; Twitter?: string; Bluesky?: string; + Instagram?: string; Addresses: IAddress[]; Notes: INote[]; Administrators: IAdministrator[];