mirror of https://github.com/renzynx/bliss.git
bruh
This commit is contained in:
parent
9dd54a7bbd
commit
6ffed9dd01
|
@ -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)
|
||||
|
|
|
@ -28,7 +28,6 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {
|
|||
headers: {
|
||||
cookie: req.headers.cookie,
|
||||
'Content-Type': 'application/json',
|
||||
'Accept-Charset': 'utf-8',
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue