|
|
@ -270,8 +270,8 @@ export const questionsQuestionRouter = createRouter()
|
|
|
|
input: z.object({
|
|
|
|
input: z.object({
|
|
|
|
cityIds: z.string().array(),
|
|
|
|
cityIds: z.string().array(),
|
|
|
|
companyIds: z.string().array(),
|
|
|
|
companyIds: z.string().array(),
|
|
|
|
countryIds: z.string().array(),
|
|
|
|
|
|
|
|
content: z.string(),
|
|
|
|
content: z.string(),
|
|
|
|
|
|
|
|
countryIds: z.string().array(),
|
|
|
|
cursor: z.string().nullish(),
|
|
|
|
cursor: z.string().nullish(),
|
|
|
|
endDate: z.date().default(new Date()),
|
|
|
|
endDate: z.date().default(new Date()),
|
|
|
|
limit: z.number().min(1).default(50),
|
|
|
|
limit: z.number().min(1).default(50),
|
|
|
@ -355,7 +355,7 @@ export const questionsQuestionRouter = createRouter()
|
|
|
|
take: input.limit + 1,
|
|
|
|
take: input.limit + 1,
|
|
|
|
where: {
|
|
|
|
where: {
|
|
|
|
id: {
|
|
|
|
id: {
|
|
|
|
in: relatedQuestionsIdArray
|
|
|
|
in: relatedQuestionsIdArray,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
...(input.questionTypes.length > 0
|
|
|
|
...(input.questionTypes.length > 0
|
|
|
|
? {
|
|
|
|
? {
|
|
|
|