Fix record creation broken

This commit is contained in:
Charles Bochet
2024-02-02 08:16:25 +01:00
parent 39f4ec9e7b
commit edeb824884

View File

@ -143,11 +143,9 @@ export class WorkspaceQueryRunnerService {
args: CreateOneResolverArgs<Record>, args: CreateOneResolverArgs<Record>,
options: WorkspaceQueryRunnerOptions, options: WorkspaceQueryRunnerOptions,
): Promise<Record | undefined> { ): Promise<Record | undefined> {
await this.createMany({ data: [args.data] }, options); const results = await this.createMany({ data: [args.data] }, options);
throw new BadRequestException('Not implemented'); return results?.[0];
// return results?.[0];
} }
async updateOne<Record extends IRecord = IRecord>( async updateOne<Record extends IRecord = IRecord>(