mirror of
https://github.com/immich-app/immich.git
synced 2025-02-04 01:09:14 -05:00
chore: remove unneccessary async/awaits (#7009)
This commit is contained in:
parent
d0b5623ca7
commit
8a47a87a14
2 changed files with 29 additions and 28 deletions
|
@ -48,59 +48,59 @@ export class ImmichApi {
|
||||||
this.options.headers['x-api-key'] = apiKey;
|
this.options.headers['x-api-key'] = apiKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto) {
|
addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto) {
|
||||||
return await addAssetsToAlbum({ id, bulkIdsDto }, this.options);
|
return addAssetsToAlbum({ id, bulkIdsDto }, this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto) {
|
checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto) {
|
||||||
return await checkBulkUpload({ assetBulkUploadCheckDto }, this.options);
|
return checkBulkUpload({ assetBulkUploadCheckDto }, this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async createAlbum(createAlbumDto: CreateAlbumDto) {
|
createAlbum(createAlbumDto: CreateAlbumDto) {
|
||||||
return await createAlbum({ createAlbumDto }, this.options);
|
return createAlbum({ createAlbumDto }, this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async createApiKey(apiKeyCreateDto: ApiKeyCreateDto, options: { headers: { Authorization: string } }) {
|
createApiKey(apiKeyCreateDto: ApiKeyCreateDto, options: { headers: { Authorization: string } }) {
|
||||||
return await createApiKey({ apiKeyCreateDto }, { ...this.options, ...options });
|
return createApiKey({ apiKeyCreateDto }, { ...this.options, ...options });
|
||||||
}
|
}
|
||||||
|
|
||||||
async getAllAlbums() {
|
getAllAlbums() {
|
||||||
return await getAllAlbums({}, this.options);
|
return getAllAlbums({}, this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async getAllAssets() {
|
getAllAssets() {
|
||||||
return await getAllAssets({}, this.options);
|
return getAllAssets({}, this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async getAssetStatistics() {
|
getAssetStatistics() {
|
||||||
return await getAssetStatistics({}, this.options);
|
return getAssetStatistics({}, this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async getMyUserInfo() {
|
getMyUserInfo() {
|
||||||
return await getMyUserInfo(this.options);
|
return getMyUserInfo(this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async getServerVersion() {
|
getServerVersion() {
|
||||||
return await getServerVersion(this.options);
|
return getServerVersion(this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async getSupportedMediaTypes() {
|
getSupportedMediaTypes() {
|
||||||
return await getSupportedMediaTypes(this.options);
|
return getSupportedMediaTypes(this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async login(loginCredentialDto: LoginCredentialDto) {
|
login(loginCredentialDto: LoginCredentialDto) {
|
||||||
return await login({ loginCredentialDto }, this.options);
|
return login({ loginCredentialDto }, this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async pingServer() {
|
pingServer() {
|
||||||
return await pingServer(this.options);
|
return pingServer(this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async signUpAdmin(signUpDto: SignUpDto) {
|
signUpAdmin(signUpDto: SignUpDto) {
|
||||||
return await signUpAdmin({ signUpDto }, this.options);
|
return signUpAdmin({ signUpDto }, this.options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async uploadFile(createAssetDto: CreateAssetDto) {
|
uploadFile(createAssetDto: CreateAssetDto) {
|
||||||
return await uploadFile({ createAssetDto }, this.options);
|
return uploadFile({ createAssetDto }, this.options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
web/package-lock.json
generated
1
web/package-lock.json
generated
|
@ -67,6 +67,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.11.0",
|
"@types/node": "^20.11.0",
|
||||||
|
"oazapfts": "^5.1.4",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue