set http status to 200 for post internal api endpoint

This commit is contained in:
Fendy Heryanto
2026-01-02 07:42:59 +00:00
parent 31150e7d5e
commit 4d3839b8f8

View File

@@ -2,6 +2,8 @@ import {
Body,
Controller,
Get,
HttpCode,
Inject,
Param,
Post,
Query,
@@ -78,6 +80,8 @@ export class InternalController {
}
@Post(['/api/v2/internal/:workspaceId/:baseId'])
// return 200 instead 201 for more generic operations
@HttpCode(200)
protected async internalAPIPost(
@TenantContext() context: NcContext,
@Param('workspaceId') workspaceId: string,