Skip to content

Commit 0d6a6c5

Browse files
authored
fix/291: set locale to null on fetch thread data if not provided (#293)
1 parent 5508bad commit 0d6a6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/services/client.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const clientService = ({ strapi }: StrapiContext) => {
5353
);
5454
const threadData = await tryCatch(
5555
async () => {
56-
return threadOf ? await this.getCommonService().findOne({ id: threadOf, related: relation, locale }) : null;
56+
return threadOf ? await this.getCommonService().findOne({ id: threadOf, related: relation, locale: locale || null }) : null;
5757
},
5858
new PluginError(400, 'Thread does not exist'),
5959
);

0 commit comments

Comments
 (0)