Remove temp createResult
This commit is contained in:
parent
31ae00d0d3
commit
6743b785c9
@ -64,11 +64,10 @@ class Database {
|
|||||||
const promises = [];
|
const promises = [];
|
||||||
const visited = {};
|
const visited = {};
|
||||||
const results = [];
|
const results = [];
|
||||||
const createResult = Database.createTerm;
|
|
||||||
const processRow = (row, index) => {
|
const processRow = (row, index) => {
|
||||||
if (titles.includes(row.dictionary) && !visited.hasOwnProperty(row.id)) {
|
if (titles.includes(row.dictionary) && !visited.hasOwnProperty(row.id)) {
|
||||||
visited[row.id] = true;
|
visited[row.id] = true;
|
||||||
results.push(createResult(row, index));
|
results.push(Database.createTerm(row, index));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -122,10 +121,9 @@ class Database {
|
|||||||
|
|
||||||
const promises = [];
|
const promises = [];
|
||||||
const results = [];
|
const results = [];
|
||||||
const createResult = Database.createTermMeta;
|
|
||||||
const processRow = (row, index) => {
|
const processRow = (row, index) => {
|
||||||
if (titles.includes(row.dictionary)) {
|
if (titles.includes(row.dictionary)) {
|
||||||
results.push(createResult(row, index));
|
results.push(Database.createTermMeta(row, index));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user