mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 00:03:28 +02:00
New devices-db doesn't have a image property.
This commit is contained in:
@@ -38,7 +38,7 @@ datautil.applyData = function(device) {
|
||||
if (match) {
|
||||
device.name = match.name.id
|
||||
device.releasedAt = match.date
|
||||
device.image = match.image.s.replace(/^small\//, '')
|
||||
device.image = model + '.jpg'
|
||||
}
|
||||
else {
|
||||
log.warn(
|
||||
@@ -48,7 +48,7 @@ datautil.applyData = function(device) {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return device
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user