Merge branch 'main' into feature-redis-cache

This commit is contained in:
Tanya Byrne
2020-08-19 16:48:14 +01:00
50 changed files with 879 additions and 160 deletions

View File

@@ -79,7 +79,9 @@ router.patch(
return res.json({ data: item || null });
}
throw new RouteNotFoundException(req.path);
const primaryKeys = await service.update(req.body);
const result = await service.readByKey(primaryKeys, req.sanitizedQuery);
return res.json({ data: result || null });
})
);
@@ -96,7 +98,6 @@ router.patch(
const primaryKey = req.params.pk.includes(',') ? req.params.pk.split(',') : req.params.pk;
const updatedPrimaryKey = await service.update(req.body, primaryKey as any);
const result = await service.readByKey(updatedPrimaryKey, req.sanitizedQuery);
res.json({ data: result || null });

View File

@@ -22,6 +22,9 @@ tables:
display_template:
type: string
length: 255
sort_field:
type: string
length: 64
directus_roles:
id:
@@ -84,6 +87,8 @@ tables:
type: text
tags:
type: json
avatar:
type: uuid
timezone:
type: string
length: 255
@@ -115,8 +120,6 @@ tables:
length: 255
last_login:
type: timestamp
avatar:
type: uuid
last_page:
type: string
length: 255
@@ -628,6 +631,8 @@ rows:
- collection: directus_roles
field: name
interface: text-input
options:
placeholder: The unique name for this role...
locked: true
sort: 1
width: half