diff options
author | Maddy <ty.carlier@gmail.com> | 2021-10-13 16:07:33 +1100 |
---|---|---|
committer | Maddy <ty.carlier@gmail.com> | 2021-10-13 19:19:46 +1100 |
commit | 808bf0a74c974d365fb83d31de370dfebb6d0367 (patch) | |
tree | b780e1ad12520e900ff514a7c05d19af9ec4f8f4 /util | |
parent | Merge pull request #443 from Mr2u/master (diff) | |
download | server-808bf0a74c974d365fb83d31de370dfebb6d0367.tar.xz |
added route /guilds/:id/prune GET count and POST prune.
Edited Member entity to include last_message_id to avoid searching for every members last message when pruning When a message is sent through /channels/:id/messages last_message_id of sending Member is updated.
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Member.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/src/entities/Member.ts b/util/src/entities/Member.ts index 7d7ac40a..19747318 100644 --- a/util/src/entities/Member.ts +++ b/util/src/entities/Member.ts @@ -84,6 +84,9 @@ export class Member extends BaseClassWithoutId { @Column({ type: "simple-json" }) settings: UserGuildSettings; + @Column() + last_message_id: string; + // TODO: update // @Column({ type: "simple-json" }) // read_state: ReadState; @@ -230,6 +233,7 @@ export class Member extends BaseClassWithoutId { deaf: false, mute: false, pending: false, + last_message_id: "", }; await Promise.all([ |