mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 20:38:32 +03:00
fix lint and prev commit errors
This commit is contained in:
@@ -36,7 +36,6 @@ class Controller {
|
||||
retrieve (sheet, tab, resource) {
|
||||
if (this._sheetExists(sheet)) {
|
||||
const fetcher = this.fetchers[sheet]
|
||||
// console.log(fetcher);
|
||||
return fetcher.retrieve(tab, resource)
|
||||
} else {
|
||||
return Promise.reject(new Error(copy.errors.noResource(sheet)))
|
||||
|
||||
@@ -189,7 +189,7 @@ class Fetcher {
|
||||
|
||||
retrieveFrag (tab, resource, frag) {
|
||||
const title = fmtName(tab)
|
||||
const url = `${this.sheetName}/${tab}/${resource}/${frag || ''}`
|
||||
const url = `${this.id}/${tab}/${resource}/${frag || ''}`
|
||||
return this.db.load(url, this.blueprints[title])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user