Skip to content

Commit 2be32d1

Browse files
author
Andrea Cosentino
committed
fix: post api fs requests
1 parent 9da2189 commit 2be32d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ async function handlingApiFsRequest(logger: ILogger, fullUrl: URL, request: Univ
309309
if (HAS_PAG_OR_FILT) {
310310
throw new UniversalApiError(`No data to filter or to paginate`, "ERROR", fullUrl.pathname, Constants.HTTP_STATUS_CODE.BAD_REQUEST);
311311
}
312-
result.status = Constants.HTTP_STATUS_CODE.CREATED;
312+
result.status = Constants.HTTP_STATUS_CODE.OK;
313313
writeFile = currentContent;
314314
}
315315
if (writeFile !== -1) {

0 commit comments

Comments
 (0)