File tree Expand file tree Collapse file tree
packages/backend/src/api/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,3 +51,13 @@ This project and everyone participating in it is governed by the [Open Archiver
5151- Follow the existing code style.
5252- Use TypeScript's strict mode.
5353- Avoid using ` any ` as a type. Define clear interfaces and types in the ` packages/types ` directory.
54+
55+ ### Formatting
56+
57+ We use Prettier for code formatting. Before you commit new code, it is necessary to check code format by running this command from the root folder:
58+
59+ ` pnpm run lint `
60+
61+ If there are any format issues, you can use the following command to fix them
62+
63+ ` pnpm run format `
Original file line number Diff line number Diff line change @@ -33,13 +33,10 @@ export class IngestionController {
3333 } catch ( error : any ) {
3434 logger . error ( { err : error } , 'Create ingestion source error' ) ;
3535 // Return a 400 Bad Request for connection errors
36- return res
37- . status ( 400 )
38- . json ( {
39- message :
40- error . message ||
41- 'Failed to create ingestion source due to a connection error.' ,
42- } ) ;
36+ return res . status ( 400 ) . json ( {
37+ message :
38+ error . message || 'Failed to create ingestion source due to a connection error.' ,
39+ } ) ;
4340 }
4441 } ;
4542
You can’t perform that action at this time.
0 commit comments