diff --git a/src/services/rooms/rooms.schema.ts b/src/services/rooms/rooms.schema.ts index aa4d29d..a921714 100644 --- a/src/services/rooms/rooms.schema.ts +++ b/src/services/rooms/rooms.schema.ts @@ -154,6 +154,8 @@ export const roomDataSchema = Type.Intersect([ export type RoomData = Static export const roomDataValidator = getValidator(roomDataSchema, dataValidator); export const roomDataResolver = resolve({ + // on room-server rooms are case insensitive + name: async (value, room, context) => context.data.name.toLowerCase(), createdAt: async () => Date.now(), updatedAt: async () => Date.now(), creatorId: async (value, room, context) => context.params.user?.id,