Skip to content

Commit cc513bd

Browse files
[Fix] bug fix for app store send methods
1 parent 43f0891 commit cc513bd

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solapi",
3-
"version": "5.1.3",
3+
"version": "5.1.4",
44
"description": "SOLAPI SDK for Node.js(Server Side Only)",
55
"repository": {
66
"type": "git",
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"clean": "rimraf dist",
3333
"compress": "yarn uglifyjs -o ./dist/index.js ./dist/index.js && yarn uglifyjs -o ./dist/module.js ./dist/module.js",
34-
"build": "yarn clean && parcel build --no-source-maps && yarn compress",
34+
"build": "yarn clean && parcel build && yarn compress",
3535
"watch": "parcel watch",
3636
"docs": "typedoc --entryPointStrategy expand ./src"
3737
},
@@ -67,5 +67,8 @@
6767
"files": [
6868
"/dist"
6969
],
70-
"packageManager": "yarn@3.2.3"
70+
"packageManager": "yarn@3.2.3",
71+
"volta": {
72+
"node": "16.14.1"
73+
}
7174
}

src/requests/messageRequest.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ import {
1111
export type DefaultAgentType = {
1212
sdkVersion: string
1313
osPlatform: string
14+
appId?: string;
1415
};
1516

16-
const sdkVersion = 'nodejs/5.1.3';
17+
const sdkVersion = 'nodejs/5.1.4';
1718

1819
export const defaultAgent: DefaultAgentType = {
1920
sdkVersion,
@@ -22,7 +23,6 @@ export const defaultAgent: DefaultAgentType = {
2223

2324
abstract class DefaultMessageRequest {
2425
allowDuplicates: boolean;
25-
appId: string | undefined;
2626
protected agent: DefaultAgentType;
2727

2828
protected constructor() {
@@ -41,7 +41,7 @@ export class SingleMessageSendingRequest extends DefaultMessageRequest {
4141
this.allowDuplicates = allowDuplicates;
4242
}
4343
if (appId) {
44-
this.appId = appId;
44+
this.agent.appId = appId;
4545
}
4646
}
4747
}
@@ -56,7 +56,7 @@ export class MultipleMessageSendingRequest extends DefaultMessageRequest {
5656
this.allowDuplicates = allowDuplicates;
5757
}
5858
if (appId) {
59-
this.appId = appId;
59+
this.agent.appId = appId;
6060
}
6161
}
6262
}
@@ -72,7 +72,7 @@ export class MultipleDetailMessageSendingRequest extends DefaultMessageRequest {
7272
this.allowDuplicates = allowDuplicates;
7373
}
7474
if (appId) {
75-
this.appId = appId;
75+
this.agent.appId = appId;
7676
}
7777
if (scheduledDate) {
7878
this.scheduledDate = formatISO(stringDateTransfer(scheduledDate));

0 commit comments

Comments
 (0)