MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / persistJob

Method persistJob

tmp_admin/tmp_admin.ts:766–781  ·  view source on GitHub ↗
(key: string, job: TempAdminJob)

Source from the content-addressed store, hash-verified

764 userId: job.userId,
765 userDisplay: job.userDisplay,
766 originalRank: job.originalRank,
767 replyToMsgId: job.replyToMsgId,
768 expiresAt: job.expiresAt,
769 retryCount: job.retryCount,
770 };
771 await this.mutateDb((data) => {
772 data.jobs[key] = stored;
773 });
774 }
775
776 private async deleteStoredJob(key: string): Promise<void> {
777 await this.mutateDb((data) => {
778 delete data.jobs[key];
779 });
780 }
781
782 private async deleteStoredJobQuiet(key: string): Promise<void> {
783 try {
784 await this.deleteStoredJob(key);

Callers 2

addTemporaryAdminMethod · 0.95
persistJobQuietMethod · 0.95

Calls 3

mutateDbMethod · 0.95
serializeChannelFunction · 0.85
serializeUserFunction · 0.85

Tested by

no test coverage detected