Fix comments fetching

This commit is contained in:
rijkvanzanten
2020-07-24 13:10:29 -04:00
parent 578fbf1fc7
commit bd5bc85d13
3 changed files with 5 additions and 5 deletions

View File

@@ -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,
},
});

View File

@@ -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',

View File

@@ -47,7 +47,7 @@ type User = {
export default defineComponent({
props: {
user: {
type: Number,
type: String,
required: true,
},
},