chore: Use only getApps query with optional name argument
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user