Skip to content

Commit dd22357

Browse files
committed
rename file
1 parent c4882e1 commit dd22357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/app/src/entities/events/api/get-events.ts renamed to frontend/app/src/entities/events/api/get-events-from-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import graphqlClient from "@/shared/api/graphql/graphqlClientApollo";
22
import { gql } from "@apollo/client";
33

4-
const EVENTS_QUERY = `
4+
const EVENTS_QUERY = gql`
55
query GET_ACTIVITIES($ids: [String], $offset: Int, $limit: Int, $search: String) {
66
InfrahubEvent(related_node__ids: $ids, offset: $offset, limit: $limit, q: $search) {
77
count
@@ -50,7 +50,7 @@ export function getEventsFromApi({
5050
atDate: Date | null;
5151
}) {
5252
return graphqlClient.query({
53-
query: gql(EVENTS_QUERY),
53+
query: EVENTS_QUERY,
5454
variables: {
5555
ids,
5656
offset,

0 commit comments

Comments
 (0)