mirror of
https://github.com/directus/directus.git
synced 2026-01-29 14:48:02 -05:00
Fix comments fetching
This commit is contained in:
@@ -42,7 +42,7 @@ export default function usePermissions(role: Ref<number>) {
|
||||
try {
|
||||
const response = await api.get(`/permissions`, {
|
||||
params: {
|
||||
'filter[role][eq]': role.value,
|
||||
'filter[role][_eq]': role.value,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -74,9 +74,9 @@ export default defineComponent({
|
||||
try {
|
||||
const response = await api.get(`/activity`, {
|
||||
params: {
|
||||
'filter[collection][eq]': collection,
|
||||
'filter[item][eq]': primaryKey,
|
||||
'filter[action][in]': 'comment',
|
||||
'filter[collection][_eq]': collection,
|
||||
'filter[item][_eq]': primaryKey,
|
||||
'filter[action][_in]': 'comment',
|
||||
sort: '-id', // directus_activity has auto increment and is therefore in chronological order
|
||||
fields: [
|
||||
'id',
|
||||
|
||||
@@ -47,7 +47,7 @@ type User = {
|
||||
export default defineComponent({
|
||||
props: {
|
||||
user: {
|
||||
type: Number,
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user