mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-10 08:48:29 +00:00
fix: remove space description check
This commit is contained in:
parent
ecba7f5aa0
commit
2281dab166
@ -5,7 +5,6 @@ import {
|
||||
type SpaceAssignmentResult,
|
||||
} from "@core/types";
|
||||
import { logger } from "~/services/logger.service";
|
||||
import { prisma } from "~/trigger/utils/prisma";
|
||||
|
||||
/**
|
||||
* Create a new space for a user
|
||||
|
||||
@ -12,7 +12,6 @@ import {
|
||||
createSpace,
|
||||
deleteSpace,
|
||||
getSpace,
|
||||
getSpaceEpisodeCount,
|
||||
getSpaceEpisodes,
|
||||
removeEpisodesFromSpace,
|
||||
updateSpace,
|
||||
@ -35,10 +34,6 @@ export class SpaceService {
|
||||
throw new Error("Space name too long (max 100 characters)");
|
||||
}
|
||||
|
||||
if (params.description && params.description.length > 1000) {
|
||||
throw new Error("Space description too long (max 1000 characters)");
|
||||
}
|
||||
|
||||
// Check for duplicate names
|
||||
const existingSpaces = await prisma.space.findMany({
|
||||
where: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user