Skip to content

Commit

Permalink
Merge pull request #228 from waifuvault/add-id-to-response
Browse files Browse the repository at this point in the history
add the id to the waifuFile response
  • Loading branch information
VictoriqueMoe authored Feb 3, 2025
2 parents 5691d15 + d0ed8e4 commit d990164
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/model/dto/WaifuFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export class WaifuFile {
@Description("Location of the uploaded file")
public url: string;

@Property()
@Description("The public ID of this file")
public id: number;

@Property()
@Description("How many times this file was downloaded")
public views: number;
Expand Down Expand Up @@ -67,6 +71,7 @@ export class WaifuFile {
}
builder
.token(fileUploadModel.token)
.id(fileUploadModel.id)
.bucket(fileUploadModel.bucketToken ?? null)
.views(fileUploadModel.views)
.url(fileUploadModel.getPublicUrl());
Expand Down

0 comments on commit d990164

Please sign in to comment.