don't populate update query

This commit is contained in:
Ben Irvin 2022-10-03 12:33:27 +02:00
parent cbef873047
commit 2dadda640b
2 changed files with 0 additions and 4 deletions

View File

@ -678,7 +678,6 @@ describe('API Token', () => {
select: expect.arrayContaining([expect.any(String)]),
where: { id },
data: attributes,
populate: ['permissions'],
});
expect(res).toEqual(attributes);
});
@ -799,7 +798,6 @@ describe('API Token', () => {
select: expect.arrayContaining([expect.any(String)]),
where: { id },
data: omit(['permissions'], updatedAttributes),
populate: expect.anything(), // it doesn't matter how this is used
});
expect(res).toEqual(updatedAttributes);
@ -871,7 +869,6 @@ describe('API Token', () => {
select: expect.arrayContaining([expect.any(String)]),
where: { id },
data: omit(['permissions'], updatedAttributes),
populate: expect.anything(), // it doesn't matter how this is used
});
expect(res).toEqual({

View File

@ -381,7 +381,6 @@ const update = async (id, attributes) => {
const updatedToken = await strapi.query('admin::api-token').update({
select: SELECT_FIELDS,
populate: POPULATE_FIELDS,
where: { id },
data: omit('permissions', attributes),
});