Missed an API compatibility issue between the bulk service and export controller

This commit is contained in:
R. Tyler Croy 2018-09-20 15:42:11 -07:00
parent 6c8d1996ed
commit 4900aafca9
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export class Bulk {
}
public async find(params : Params) : Promise<any> {
if (!params.type) {
if (!params.query.type) {
return Promise.resolve([]);
}
/*
@ -50,7 +50,7 @@ export class Bulk {
*/
return db.sequelize.query("SELECT * FROM events WHERE type = :type", {
replacements: {
type: params.type,
type: params.query.type,
},
type: QueryTypes.SELECT,
});