Skip to content

Commit d0c77df

Browse files
committed
✔ Ya Wes ~ Test
1 parent f642481 commit d0c77df

20 files changed

+162
-16
lines changed

dist/main-site/browser/370.db6a63d9eca82e39.js renamed to dist/main-site/browser/370.a1a2b767825c35dc.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main-site/browser/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<noscript>🎉 Harap Menyalakan JavaScript Untuk Dapat Mengakses Website Ini ✨</noscript>
6464
</div>
6565
<app-root></app-root>
66-
<script src="runtime.a44160fccf679860.js" type="module"></script><script src="polyfills.c264b580e8a973fe.js" type="module"></script><script src="scripts.d530b24d62dab3a0.js" defer></script><script src="main.e1222643412c9655.js" type="module"></script>
66+
<script src="runtime.c6ec136adf4641a4.js" type="module"></script><script src="polyfills.c264b580e8a973fe.js" type="module"></script><script src="scripts.d530b24d62dab3a0.js" defer></script><script src="main.e1222643412c9655.js" type="module"></script>
6767

6868

6969
</body></html>

dist/main-site/browser/ngsw.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"configVersion": 1,
3-
"timestamp": 1736521513279,
3+
"timestamp": 1736612557679,
44
"index": "/index.html",
55
"assetGroups": [
66
{
@@ -18,7 +18,7 @@
1818
"/31.20012e7631a4459a.js",
1919
"/338.e456b7495d3489d9.js",
2020
"/348.6f12d479395e1715.js",
21-
"/370.db6a63d9eca82e39.js",
21+
"/370.a1a2b767825c35dc.js",
2222
"/375.ee4c6a4506d78add.js",
2323
"/38.1a44f6bab862044e.js",
2424
"/499.50b8ddc5adb9e536.js",
@@ -46,7 +46,7 @@
4646
"/main.e1222643412c9655.js",
4747
"/manifest.webmanifest",
4848
"/polyfills.c264b580e8a973fe.js",
49-
"/runtime.a44160fccf679860.js",
49+
"/runtime.c6ec136adf4641a4.js",
5050
"/scripts.d530b24d62dab3a0.js",
5151
"/styles.b849b3eb93129b2e.css"
5252
],
@@ -94,7 +94,7 @@
9494
"/31.20012e7631a4459a.js": "70d4807f0789648d23481539832be437cb4d1145",
9595
"/338.e456b7495d3489d9.js": "ba5f4ceaaa0119020da73cb96907406603109a7d",
9696
"/348.6f12d479395e1715.js": "61e837acfc298309fb005db4a430461096e0a87a",
97-
"/370.db6a63d9eca82e39.js": "1876e71525692f326a30ce7a0eea7ee2b9b48a68",
97+
"/370.a1a2b767825c35dc.js": "8038a9ea435e8816bbfffeb1bc2df6d83b8c5fd1",
9898
"/375.ee4c6a4506d78add.js": "7fdd449c11040dff5461d4e5639045bc28b94cb4",
9999
"/38.1a44f6bab862044e.js": "b35fc15b972bb1f20897aad98b7364014b76093d",
100100
"/499.50b8ddc5adb9e536.js": "60dfd879ba5a25a0cae0c32c49dfae1c13abecdd",
@@ -118,11 +118,11 @@
118118
"/935.297c8ba9525ff76f.js": "baa0480d7f4c538c4c935a94f0a7577a9b23b246",
119119
"/common.2b2ea1c0dd3b71ba.js": "bcda1c301b7447775db98c3032328ce22b1f55b6",
120120
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
121-
"/index.html": "e237347d4705857f801e748e9be40e78d7a09a0a",
121+
"/index.html": "d24d745e657f1e28943902df405c2f4d2d12e576",
122122
"/main.e1222643412c9655.js": "9586c37c30b3351077cc8eb0ce284849ee5942f5",
123123
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
124124
"/polyfills.c264b580e8a973fe.js": "67f24a57563377058dfcd5306c56c0cd696ba2e5",
125-
"/runtime.a44160fccf679860.js": "b4ad28548a6a7e93e835819bc86794f61e24857f",
125+
"/runtime.c6ec136adf4641a4.js": "0ac2b3f0deeeafe83ab5a182d5489e79cee43135",
126126
"/scripts.d530b24d62dab3a0.js": "2d11a419816b2dd8d9eccaff4f113ae0eafdd306",
127127
"/styles.b849b3eb93129b2e.css": "d68b5778bdca764c5297b8067a72b676f8cce12d"
128128
},

dist/main-site/browser/runtime.a44160fccf679860.js renamed to dist/main-site/browser/runtime.c6ec136adf4641a4.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main-site/server/main.js

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

projects/main-site/src/api/controllers/fansub-/fansub-member.controller.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Controller, Delete, Get, HttpCode, HttpException, HttpStatus, Post, Put, Req, Res } from '@nestjs/common';
22
import { ApiExcludeController } from '@nestjs/swagger';
33
import { Request, Response } from 'express';
4-
import { Equal, ILike } from 'typeorm';
4+
import { Equal, ILike, IsNull, Not } from 'typeorm';
55

66
import { FilterApiKeyAccess } from '../../decorators/filter-api-key-access.decorator';
77
import { Roles } from '../../decorators/roles.decorator';
@@ -46,9 +46,11 @@ export class FansubMemberController {
4646
{
4747
fansub_: {
4848
slug: ILike(`%${searchQuery}%`)
49-
}
49+
},
50+
user_: Not(IsNull())
5051
},
5152
{
53+
fansub_: Not(IsNull()),
5254
user_: {
5355
username: ILike(`%${searchQuery}%`)
5456
}

projects/main-site/src/api/controllers/fansub.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { URL } from 'node:url';
55
import { Controller, Delete, Get, HttpCode, HttpException, HttpStatus, Post, Put, Req, Res } from '@nestjs/common';
66
import { ApiExcludeEndpoint, ApiParam, ApiQuery, ApiTags } from '@nestjs/swagger';
77
import { Request, Response } from 'express';
8-
import { Equal, ILike } from 'typeorm';
8+
import { Equal, ILike, IsNull, Not } from 'typeorm';
99

1010
import { CONSTANTS } from '../../constants';
1111

@@ -503,10 +503,10 @@ export class FansubController {
503503
const [members, count] = await this.fansubMemberRepo.findAndCount({
504504
where: [
505505
{
506-
approved: true,
507506
fansub_: {
508507
slug: ILike(req.params['slug'])
509-
}
508+
},
509+
user_: Not(IsNull())
510510
}
511511
],
512512
order: {

projects/main-site/src/api/repository/attachment.service.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,25 @@ export class AttachmentService {
3030
}
3131

3232
find(options: FindManyOptions<Attachment>): Promise<Attachment[]> {
33+
if (!options.withDeleted) {
34+
options.withDeleted = false;
35+
}
3336
this.gs.log('[ATTACHMENT_SERVICE-FIND_ALL] 💾', options);
3437
return this.attachmentRepo.find(options);
3538
}
3639

3740
findAndCount(options: FindManyOptions<Attachment>): Promise<[Attachment[], number]> {
41+
if (!options.withDeleted) {
42+
options.withDeleted = false;
43+
}
3844
this.gs.log('[ATTACHMENT_SERVICE-FIND_AND_COUNT] 💾', options);
3945
return this.attachmentRepo.findAndCount(options);
4046
}
4147

4248
findOneOrFail(options: FindOneOptions<Attachment>): Promise<Attachment> {
49+
if (!options.withDeleted) {
50+
options.withDeleted = false;
51+
}
4352
this.gs.log('[ATTACHMENT_SERVICE-GET_BY] 💾', options);
4453
return this.attachmentRepo.findOneOrFail(options);
4554
}
@@ -50,6 +59,9 @@ export class AttachmentService {
5059
}
5160

5261
count(options: FindManyOptions<Attachment>): Promise<number> {
62+
if (!options.withDeleted) {
63+
options.withDeleted = false;
64+
}
5365
this.gs.log('[ATTACHMENT_SERVICE-COUNT] 💾', options);
5466
return this.attachmentRepo.count(options);
5567
}

projects/main-site/src/api/repository/berkas.service.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,25 @@ export class BerkasService {
3030
}
3131

3232
find(options: FindManyOptions<Berkas>): Promise<Berkas[]> {
33+
if (!options.withDeleted) {
34+
options.withDeleted = false;
35+
}
3336
this.gs.log('[BERKAS_SERVICE-FIND_ALL] 📂', options);
3437
return this.berkasRepo.find(options);
3538
}
3639

3740
findAndCount(options: FindManyOptions<Berkas>): Promise<[Berkas[], number]> {
41+
if (!options.withDeleted) {
42+
options.withDeleted = false;
43+
}
3844
this.gs.log('[BERKAS_SERVICE-FIND_AND_COUNT] 📂', options);
3945
return this.berkasRepo.findAndCount(options);
4046
}
4147

4248
findOneOrFail(options: FindOneOptions<Berkas>): Promise<Berkas> {
49+
if (!options.withDeleted) {
50+
options.withDeleted = false;
51+
}
4352
this.gs.log('[BERKAS_SERVICE-GET_BY] 📂', options);
4453
return this.berkasRepo.findOneOrFail(options);
4554
}
@@ -50,6 +59,9 @@ export class BerkasService {
5059
}
5160

5261
count(options: FindManyOptions<Berkas>): Promise<number> {
62+
if (!options.withDeleted) {
63+
options.withDeleted = false;
64+
}
5365
this.gs.log('[BERKAS_SERVICE-COUNT] 📂', options);
5466
return this.berkasRepo.count(options);
5567
}

projects/main-site/src/api/repository/fansub.service.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,25 @@ export class FansubService {
4747
}
4848

4949
find(options: FindManyOptions<Fansub>): Promise<Fansub[]> {
50+
if (!options.withDeleted) {
51+
options.withDeleted = false;
52+
}
5053
this.gs.log('[FANSUB_SERVICE-FIND_ALL] 🍿', options);
5154
return this.fansubRepo.find(options);
5255
}
5356

5457
findAndCount(options: FindManyOptions<Fansub>): Promise<[Fansub[], number]> {
58+
if (!options.withDeleted) {
59+
options.withDeleted = false;
60+
}
5561
this.gs.log('[FANSUB_SERVICE-FIND_AND_COUNT] 🍿', options);
5662
return this.fansubRepo.findAndCount(options);
5763
}
5864

5965
findOneOrFail(options: FindOneOptions<Fansub>): Promise<Fansub> {
66+
if (!options.withDeleted) {
67+
options.withDeleted = false;
68+
}
6069
this.gs.log('[FANSUB_SERVICE-GET_BY] 🍿', options);
6170
return this.fansubRepo.findOneOrFail(options);
6271
}
@@ -67,6 +76,9 @@ export class FansubService {
6776
}
6877

6978
count(options: FindManyOptions<Fansub>): Promise<number> {
79+
if (!options.withDeleted) {
80+
options.withDeleted = false;
81+
}
7082
this.gs.log('[FANSUB_SERVICE-COUNT] 🍿', options);
7183
return this.fansubRepo.count(options);
7284
}

0 commit comments

Comments
 (0)