mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Merge branch 'main' into feature-redis-cache
This commit is contained in:
@@ -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 });
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user