We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f20f54 commit 287c14cCopy full SHA for 287c14c
1 file changed
src/feedback/models/feedbackManager.ts
@@ -19,7 +19,8 @@ export class FeedbackManager {
19
public async createFeedback(feedback: IFeedbackModel, apiKey: string): Promise<FeedbackResponse> {
20
const requestId = feedback.request_id;
21
const userId = feedback.user_id;
22
- const userValidation = this.config.get<string[]>('application.userValidation');
+ const raw = this.config.get<string | string[]>('application.userValidation');
23
+ const userValidation = Array.isArray(raw) ? raw : (JSON.parse(raw) as string[]);
24
const ttl = this.config.get<number>('redis.ttl');
25
const prefix = this.config.has('redis.prefix') ? this.config.get<string>('redis.prefix') : undefined;
26
0 commit comments