This commit is contained in:
renzynx 2022-12-22 17:12:16 +07:00
parent 9dd54a7bbd
commit 6ffed9dd01
2 changed files with 2 additions and 5 deletions

View File

@ -32,6 +32,7 @@ import {
} from "lib/constants";
import { join } from "path";
import { readFile } from "fs/promises";
import { EmbedSettingDTO } from "./dto/EmbedSettingsDTO";
@Injectable()
export class UsersService implements IUserService {
@ -340,10 +341,7 @@ export class UsersService implements IUserService {
return this.prisma.embedSettings.findUnique({ where: { userId: id } });
}
async setEmbedSettings(
settings: Omit<EmbedSettings, "id" | "userId">,
id: string
) {
async setEmbedSettings(settings: EmbedSettingDTO, id: string) {
// @ts-ignore
settings.enabled === "false"
? (settings.enabled = false)

View File

@ -28,7 +28,6 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {
headers: {
cookie: req.headers.cookie,
'Content-Type': 'application/json',
'Accept-Charset': 'utf-8',
},
});