Skip to content

Commit

Permalink
chore: addressing some feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Dec 20, 2023
1 parent 1928f0e commit 2ec928a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/api/src/app/quiz/add.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { intraledgerPaymentSendWalletIdForBtcWallet } from "../payments/send-intraledger"

import { QuizzesValue } from "./config"
import { QuizzesValue } from "@/domain/earn"

import { getQuizzesConfig } from "@/config"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { QuizRepository } from "../mongoose"

import { QuizzesValue } from "@/app/quiz/config"
import { QuizzesValue } from "@/domain/earn/config"
import { QuizRepository } from "@/services/mongoose"

export const getQuizzesByAccountId = async (accountId: AccountId) => {
const quizzes = await QuizRepository(accountId).fetchAll()
Expand Down
1 change: 1 addition & 0 deletions core/api/src/app/quiz/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./add"
export * from "./get"
2 changes: 1 addition & 1 deletion core/api/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export * from "./schema"
import { ConfigError } from "./error"

import { toDays } from "@/domain/primitives"
import { QuizzesValue } from "@/app/quiz/config"
import { QuizzesValue } from "@/domain/earn"

export const MS_PER_SEC = 1000 as MilliSeconds
export const MS_PER_5_MINS = (60 * 5 * MS_PER_SEC) as MilliSeconds
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions core/api/src/domain/earn/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./config"
3 changes: 1 addition & 2 deletions core/api/src/graphql/public/types/object/consumer-account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ import DisplayCurrency from "@/graphql/shared/types/scalar/display-currency"

import { listEndpoints } from "@/app/callback"
import { IInvoiceConnection } from "@/graphql/shared/types/abstract/invoice"

import { getQuizzesByAccountId } from "@/services/quiz"
import { getQuizzesByAccountId } from "@/app/quiz"

const ConsumerAccount = GT.Object<Account, GraphQLPublicContextAuth>({
name: "ConsumerAccount",
Expand Down

0 comments on commit 2ec928a

Please sign in to comment.