Skip to content

Commit

Permalink
✔ Fix Error False Positive
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Sep 1, 2023
1 parent 6c3336f commit 6f3bd2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/fansubid/browser/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1693586397560,
"timestamp": 1693587858697,
"index": "/index.html",
"assetGroups": [
{
Expand Down
2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/api/controllers/berkas.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class BerkasController {
relations: ['user_']
});
await this.tempAttachmentRepo.remove(tempAttachment);
if (berkas.attachment_ !== null) {
if ('attachment_' in berkas && berkas.attachment_) {
throw new HttpException({
info: `🙄 403 - Berkas API :: Tidak Dapat Mengganti Lampiran 😪`,
result: {
Expand Down

0 comments on commit 6f3bd2b

Please sign in to comment.