Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Oct 26, 2023
1 parent 987123e commit 183f59b
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm-store \

FROM fetcher as builder
# specify the app in apps/ we want to build
ARG APP_NAME=@ufabcnext/core
ARG APP_NAME=@next/core
ENV APP_NAME=${APP_NAME}


Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/hooks/authenticate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UserModel } from '@next/models';
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import type { onRequestAsyncHookHandler } from 'fastify';
import type { JwtHeader, SignPayloadType } from '@fastify/jwt';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
StudentModel,
UserModel,
} from '@next/models';
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import type { PipelineStage } from 'mongoose';

type DisciplinaStats = {
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/modules/user/handlers/completeUser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import { UfabcUser } from '../sign-up-schema.js';
import type { FastifyReply, FastifyRequest } from 'fastify';

Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/modules/user/handlers/confirmUser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import { UserModel } from '@next/models';
import { Config } from '@/config/config.js';
import { ParsedUserToken } from '../sign-up-schema.js';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/plugins/oauth2/utils/get-oauth-info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import { ofetch } from 'ofetch';
import type { Token } from '@fastify/oauth2';
import type { GoogleUser, NextOAuth2User } from '@next/types';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import gracefullyShutdown from 'close-with-grace';
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import { Config } from './config/config.js';
import { buildApp } from './app.js';
import type { FastifyServerOptions } from 'fastify';
Expand Down
2 changes: 1 addition & 1 deletion apps/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["@ufabcnext/tsconfig/fastify.json"],
"extends": ["@next/tsconfig/fastify.json"],
"compilerOptions": {
"module": "NodeNext",
"paths": {
Expand Down
2 changes: 1 addition & 1 deletion apps/models/src/schema/Disciplina.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
type UpdateQuery,
model,
} from 'mongoose';
import { findQuarter } from '@ufabcnext/common';
import { findQuarter } from '@next/common';

const disciplinaSchema = new Schema(
{
Expand Down
2 changes: 1 addition & 1 deletion apps/models/src/schema/Student.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type UpdateQuery,
model,
} from 'mongoose';
import { findQuarter } from '@ufabcnext/common';
import { findQuarter } from '@next/common';

const studentSchema = new Schema(
{
Expand Down
2 changes: 1 addition & 1 deletion apps/models/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@ufabcnext/tsconfig/fastify.json",
"extends": "@next/tsconfig/fastify.json",
"include": [
"src/schema/**.ts",
"src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion apps/queue/src/config/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import { config as dotEnvConfig } from 'dotenv';
import { z } from 'zod';

Expand Down
2 changes: 1 addition & 1 deletion apps/queue/src/integration/ses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
SendTemplatedEmailCommand,
type SendTemplatedEmailCommandInput,
} from '@aws-sdk/client-ses';
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import { Config } from '../config/config.js';

type Email = {
Expand Down
2 changes: 1 addition & 1 deletion apps/queue/src/jobs/confirmationEmail/email.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '@ufabcnext/common';
import { logger } from '@next/common';
import { MAILER_CONFIG, WEB_URL, WEB_URL_LOCAL } from '@next/constants';
import { createToken } from '../../helpers/create-token.js';
import { Config } from '../../config/config.js';
Expand Down
2 changes: 1 addition & 1 deletion apps/queue/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["@ufabcnext/tsconfig/fastify.json"],
"extends": ["@next/tsconfig/fastify.json"],
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
Expand Down
2 changes: 1 addition & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@ufabcnext/tsconfig/base.json",
"extends": "@next/tsconfig/base.json",
"compilerOptions": {
"resolveJsonModule": true,
"declaration": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/constants/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@ufabcnext/tsconfig/base.json",
"extends": "@next/tsconfig/base.json",
"compilerOptions": {
"resolveJsonModule": true,
"declaration": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@ufabcnext/tsconfig/base.json",
"extends": "@next/tsconfig/base.json",
"include": ["**/*.ts"]
}

0 comments on commit 183f59b

Please sign in to comment.