Fix code snippets in "Configuring Collections, Fields, and Relations" guide (#23865)

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
Muhammad Anas Sarfraz
2024-10-18 17:21:15 +05:00
committed by GitHub
parent 22923650f3
commit 183f1012f4
2 changed files with 5 additions and 4 deletions

View File

@@ -171,3 +171,4 @@
- mmsardar
- ubercj
- Julias0
- anassarfraz

View File

@@ -46,7 +46,7 @@ router.post('/', async (req, res) => {
const data = await collectionsService.readOne(collectionKey);
res.json(record);
res.json(data);
});
```
@@ -146,7 +146,7 @@ router.post('/', async (req, res) => {
field.field,
);
res.json(createdField);
res.json(data);
});
```
@@ -189,7 +189,7 @@ router.patch('/', async (req, res) => {
'field_name',
);
res.json(updatedField);
res.json(data);
});
```
@@ -251,7 +251,7 @@ router.post('/', async (req, res) => {
const data = await relationsService.readOne(data);
res.json(record);
res.json(data);
});
```