Overwrite standard translations (#11134)
Manage overwriting translations for standard fields and standard objects properties
This commit is contained in:
@ -106,12 +106,13 @@ export class ObjectMetadataResolver {
|
||||
async updateOneObject(
|
||||
@Args('input') input: UpdateOneObjectInput,
|
||||
@AuthWorkspace() { id: workspaceId }: Workspace,
|
||||
@Context() context: I18nContext,
|
||||
) {
|
||||
try {
|
||||
const updatedInput = (await this.beforeUpdateOneObject.run(
|
||||
input,
|
||||
const updatedInput = (await this.beforeUpdateOneObject.run(input, {
|
||||
workspaceId,
|
||||
)) as UpdateOneObjectInput;
|
||||
locale: context.req.headers['x-locale'],
|
||||
})) as UpdateOneObjectInput;
|
||||
|
||||
return await this.objectMetadataService.updateOneObject(
|
||||
updatedInput,
|
||||
|
||||
Reference in New Issue
Block a user