Commit 3e3095d5 authored by nanahira's avatar nanahira

improve select

parent 572df71f
Pipeline #8570 passed with stages
in 2 minutes and 40 seconds
...@@ -31,6 +31,7 @@ export class AppService extends ConsoleLogger { ...@@ -31,6 +31,7 @@ export class AppService extends ConsoleLogger {
url, url,
size, size,
}, },
select: ['content'],
}); });
if (existingAvatar) { if (existingAvatar) {
return existingAvatar.toBuffer(); return existingAvatar.toBuffer();
...@@ -42,6 +43,7 @@ export class AppService extends ConsoleLogger { ...@@ -42,6 +43,7 @@ export class AppService extends ConsoleLogger {
url, url,
size: 0, size: 0,
}, },
select: ['content'],
}); });
if (originalAvatar) { if (originalAvatar) {
originalAvatarBuffer = originalAvatar.toBuffer(); originalAvatarBuffer = originalAvatar.toBuffer();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment