Skip to content

Commit 934e816

Browse files
author
Kenneth
committed
fix:api get last gps
1 parent 53208f1 commit 934e816

File tree

5 files changed

+45
-44
lines changed

5 files changed

+45
-44
lines changed

dist/index.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/models/interfaces/deviceDataSync.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface IDeviceDataSync extends IBase {
2424
/** The last time the files were synchronized */
2525
lastFileDate?: DateType;
2626
/** The last time the GPS data was synchronized */
27-
lastGPSDate?: DateType;
27+
lastGpsDate?: DateType;
2828
/** The last time the keylogger data was synchronized */
2929
lastKeyloggerDate?: DateType;
3030
/** The last time the notifications were synchronized */
@@ -34,9 +34,9 @@ export interface IDeviceDataSync extends IBase {
3434
/** The last time the photos were synchronized */
3535
lastPhotoDate?: DateType;
3636
/** The last time the SMS messages were synchronized */
37-
lastSMSDate?: DateType;
37+
lastSmsDate?: DateType;
3838
/** The last time the URLs were synchronized */
39-
lastURLDate?: DateType;
39+
lastUrlDate?: DateType;
4040
}
4141
export interface IGetOrCreateDeviceDataSync extends Pick<IDeviceDataSync, 'deviceId'> {
4242
}

package.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
{
2-
"name": "dun-js",
3-
"description": "The Javascript package for DUN",
4-
"version": "1.2.8",
5-
"author": "1byte devteam",
6-
"license": "ISC",
7-
"bugs": {
8-
"url": "https://github.com/1Byte-Software/dun-js/issues"
9-
},
10-
"homepage": "https://github.com/1Byte-Software/dun-js",
11-
"repository": {
12-
"type": "git",
13-
"url": "git+https://github.com/1Byte-Software/dun-js.git"
14-
},
15-
"main": "dist/index.js",
16-
"types": "dist/index.d.ts",
17-
"scripts": {
18-
"test": "echo \"Error: no test specified\" && exit 1",
19-
"build": "rollup -c",
20-
"watch": "npm run build -- --watch src",
21-
"prepublishOnly": "npm run build"
22-
},
23-
"dependencies": {
24-
"axios": "^1.7.7",
25-
"jfw-js": "^3.9.0-1.9",
26-
"query-string": "^9.1.0",
27-
"rollup": "^4.22.0",
28-
"rollup-plugin-typescript2": "^0.36.0",
29-
"rxjs": "^7.8.1"
30-
},
31-
"devDependencies": {
32-
"@types/node": "^22.5.5",
33-
"prettier": "^3.3.3",
34-
"typescript": "^5.6.2"
35-
},
36-
"type": "module"
2+
"name": "dun-js",
3+
"description": "The Javascript package for DUN",
4+
"version": "0.9.27",
5+
"author": "1byte devteam",
6+
"license": "ISC",
7+
"bugs": {
8+
"url": "https://github.com/1Byte-Software/dun-js/issues"
9+
},
10+
"homepage": "https://github.com/1Byte-Software/dun-js",
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/1Byte-Software/dun-js.git"
14+
},
15+
"main": "dist/index.js",
16+
"types": "dist/index.d.ts",
17+
"scripts": {
18+
"test": "yarn build && yalc publish --push --no-scripts",
19+
"build": "rollup -c",
20+
"watch": "npm run build -- --watch src",
21+
"prepublishOnly": "npm run build"
22+
},
23+
"dependencies": {
24+
"axios": "^1.7.7",
25+
"jfw-js": "^3.9.0-1.9",
26+
"query-string": "^9.1.0",
27+
"rollup": "^4.22.0",
28+
"rollup-plugin-typescript2": "^0.36.0",
29+
"rxjs": "^7.8.1"
30+
},
31+
"devDependencies": {
32+
"@types/node": "^22.5.5",
33+
"prettier": "^3.3.3",
34+
"typescript": "^5.6.2"
35+
},
36+
"type": "module"
3737
}

src/api/gps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const getLastGPSAPI = async (params?: IGetLastGPSParams): Promise<IGPS |
7070
},
7171
});
7272

73-
const result = response.data[0];
73+
const result = response?.data?.items?.[0];
7474

7575
if (!result) return null;
7676

0 commit comments

Comments
 (0)