chore: Use only getApps query with optional name argument

This commit is contained in:
Faruk AYDIN
2021-10-08 23:31:40 +02:00
committed by Ali BARIN
parent 0e684570f8
commit e0ab059744
5 changed files with 10 additions and 23 deletions

View File

@@ -1,7 +1,11 @@
import App from '../../models/app';
const getApps = () => {
return App.findAll()
type Params = {
name: string
}
const getApps = (params: Params) => {
return App.findAll(params.name)
}
export default getApps;