Skip to content

Commit 7fcfd38

Browse files
committed
Fix typo + add todo
1 parent b8327dd commit 7fcfd38

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/api/collections.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export default class Data {
151151
const limit = parseInt(req.query.limit, 10) || 10;
152152
const offset = parseInt(req.query.offset, 10) || 0;
153153

154+
// todo: migrate to ee.data.listImages?
154155
// Load the collection
155156
let ic = this.ee.ImageCollection(id);
156157

@@ -219,7 +220,7 @@ export default class Data {
219220
}
220221

221222
// Limit
222-
const icList = ic.toList(limit + 1, offset)
223+
const icList = ic.toList(limit + 1, offset);
223224

224225
// Retrieve the items
225226
let items;

src/api/jobs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default class JobsAPI {
143143
token: req.params.token
144144
};
145145

146-
await this.getJobRultsByQuery(query, true, req, res);
146+
await this.getJobResultsByQuery(query, true, req, res);
147147
}
148148

149149
async getJobResults(req, res) {
@@ -153,7 +153,7 @@ export default class JobsAPI {
153153
_id: req.params.job_id,
154154
user_id: req.user._id
155155
};
156-
await this.getJobRultsByQuery(query, false, req, res);
156+
await this.getJobResultsByQuery(query, false, req, res);
157157
}
158158

159159
async deleteJobResults(req, res) {
@@ -175,7 +175,7 @@ export default class JobsAPI {
175175
res.send(204);
176176
}
177177

178-
async getJobRultsByQuery(query, publish, req, res) {
178+
async getJobResultsByQuery(query, publish, req, res) {
179179
const job = await this.storage.findJob(query);
180180
const partial = typeof req.query.partial !== 'undefined';
181181
if (job.status === 'error') {

0 commit comments

Comments
 (0)