Skip to content

Commit

Permalink
Updates to schema file
Browse files Browse the repository at this point in the history
  • Loading branch information
thedanielforum committed Jul 8, 2022
1 parent f960a76 commit c42595b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default NextAuth({
clientId: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
httpOptions: {
timeout: 40000,
timeout: 60000,
},
}),
FacebookProvider({
Expand Down
16 changes: 13 additions & 3 deletions pages/dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextPage } from "next";
import { Fragment } from "react";
import { Fragment, useState } from "react";
import { useIntl } from "react-intl";
import { useQuery, gql } from "@apollo/client";
import { useQuery } from "@apollo/client";
import toast from "react-hot-toast";
import { TRANSACTION_AMOUNT_AGGREGATE } from "constants/queries";
import { GET_TRANSACTIONS } from "constants/queries";
Expand All @@ -13,10 +13,20 @@ import CategoryChart from "components/CategoryChart";

const Dashboard: NextPage = () => {
const intl = useIntl();
const [dateStart, setDateStart] = useState(new Date());
const [dateEnd, setDateEnd] = useState(new Date());

const { data: income, error: incomeError } = useQuery(
TRANSACTION_AMOUNT_AGGREGATE,
{
variables: { filter: { and: [{ amount: { gt: 0 } }] } },
variables: {
filter: {
and: [
{ amount: { gt: 0 } },
// { date: { between: { min: dateStart, max: dateEnd } } },
],
},
},
}
);
if (incomeError) {
Expand Down
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ADD ikura.graphql .
ADD ikura-prod.graphql .
ADD ikura.zefops.py .

RUN pip3 install zef==v0.15.7a3
RUN pip3 install zef==v0.15.7a7

# pip install stuff
ADD requirements.txt .
Expand Down
1 change: 1 addition & 0 deletions server/ikura-prod.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type Transaction
user: User @relation(rt: "User")
category: Category
amount: Int @search
description: String
date: DateTime @search
}

Expand Down

1 comment on commit c42595b

@vercel
Copy link

@vercel vercel bot commented on c42595b Jul 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ikura – ./

ikura.vercel.app
ikura-zefhub.vercel.app
www.ikura.app
ikura-git-main-zefhub.vercel.app
ikura.app

Please sign in to comment.