Skip to content

Commit 14254e7

Browse files
committed
Update SPService.ts
1 parent a23e41a commit 14254e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/SPService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ISPService, ILibsOptions, LibsOrderBy } from "./ISPService";
22
import { ISPLists } from "../common/SPEntities";
33
import { WebPartContext } from "@microsoft/sp-webpart-base";
44
import { ExtensionContext } from "@microsoft/sp-extension-base";
5-
import { SPHttpClient, SPHttpClientResponse } from "@microsoft/sp-http";
5+
import { SPHttpClient, SPHttpClientResponse,ISPHttpClientOptions } from "@microsoft/sp-http";
66
import { sp, Web } from '@pnp/sp';
77

88
export default class SPService implements ISPService {
@@ -83,7 +83,7 @@ export default class SPService implements ISPService {
8383
console.dir(error);
8484
return Promise.reject(error);
8585
}
86-
86+
8787
}
8888

8989
// delete attachment
@@ -105,7 +105,7 @@ export default class SPService implements ISPService {
105105

106106
// Add Attachment
107107
public async addAttachment(listId: string, itemId: number, fileName: string, file: ArrayBuffer, webUrl?: string): Promise<void> {
108-
108+
109109
try {
110110
// remove special characteres in FileName
111111
fileName = fileName.replace(/[^\.\w\s]/gi, '');

0 commit comments

Comments
 (0)