0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 09:52:48 +00:00

lint server api

This commit is contained in:
Víctor Losada Hernández
2025-03-08 13:42:49 +01:00
parent 4918dc5239
commit e523886345

View File

@@ -1,6 +1,6 @@
import express from 'express';
import asyncHandler from 'express-async-handler';
import {model as HomebrewModel } from './homebrew.model.js';
import { model as HomebrewModel } from './homebrew.model.js';
const router = express.Router();
@@ -29,7 +29,7 @@ const rendererConditions = (legacy, v3)=>{
return {}; // If all renderers selected, renderer field not needed in query for speed
};
const sortConditions = (sort, dir) => {
const sortConditions = (sort, dir)=>{
return { [sort]: dir === 'asc' ? 1 : -1 };
};