Merge pull request #1008 from spacebarchat/dev/samuel

This commit is contained in:
Samuel (Flam3rboy) authored and GitHub committed 2023-03-30 18:13:34 +02:00
commit 69ea71aa9e
51 files changed
+556 -149

No files matched your search

@@ -39,6 +39,7 @@ const TemplateGuildProjection: (keyof Guild)[] = [
"system_channel_id",
"system_channel_flags",
"icon",
"id",
];
router.get("/", route({}), async (req: Request, res: Response) => {
+3 -3
View File
@@ -52,17 +52,17 @@ router.put("/:id", route({}), async (req: Request, res: Response) => {
where: { owner: { id: owner.id }, target: { id: target.id } },
})
) {
Note.update(
await Note.update(
{ owner: { id: owner.id }, target: { id: target.id } },
{ owner, target, content: note },
);
} else {
Note.insert({
await Note.create({
id: Snowflake.generate(),
owner,
target,
content: note,
});
}).save();
}
} else {
await Note.delete({