Skip to content

Commit

Permalink
refactor(server/controller): remove id from quote select responses
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktimsaikia committed Apr 9, 2024
1 parent 4692227 commit 2b43d29
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions server/controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const getRandomQuote = async (_req: Request, res: Response) => {
try {
const randomQuote = await db
.select({
id: quote.id,
quote: quote.content,
anime: anime.name,
character: character.name,
Expand All @@ -42,7 +41,6 @@ export const getRandomQuotes = async (_req: Request, res: Response) => {
try {
const quotes = await db
.select({
id: quote.id,
quote: quote.content,
anime: anime.name,
character: character.name,
Expand Down Expand Up @@ -73,7 +71,6 @@ export const getRandomQuoteByAnime = async (req: Request, res: Response) => {
try {
const randomQuote = await db
.select({
id: quote.id,
quote: quote.content,
anime: anime.name,
character: character.name,
Expand Down Expand Up @@ -112,7 +109,6 @@ export const getRandomQuoteByCharacter = async (req: Request, res: Response) =>
try {
const randomQuote = await db
.select({
id: quote.id,
quote: quote.content,
anime: anime.name,
character: character.name,
Expand Down Expand Up @@ -152,7 +148,6 @@ export const getQuotesByAnime = async (req: Request, res: Response) => {
if (page) {
let quotes = await db
.select({
id: quote.id,
quote: quote.content,
anime: anime.name,
character: character.name,
Expand All @@ -174,7 +169,6 @@ export const getQuotesByAnime = async (req: Request, res: Response) => {

let quotes = await db
.select({
id: quote.id,
quote: quote.content,
anime: anime.name,
character: character.name,
Expand Down Expand Up @@ -213,7 +207,6 @@ export const getQuotesByCharacter = async (req: Request, res: Response) => {
if (page) {
let quotes = await db
.select({
id: quote.id,
quote: quote.content,
anime: anime.name,
character: character.name,
Expand All @@ -236,7 +229,6 @@ export const getQuotesByCharacter = async (req: Request, res: Response) => {

let quotes = await db
.select({
id: quote.id,
quote: quote.content,
anime: anime.name,
character: character.name,
Expand Down

0 comments on commit 2b43d29

Please sign in to comment.