-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8963 from weseek/feat/78040-135788-resume-suspend…
…ed-bulk-export-job Feat/78040 135788 resume suspended bulk export job
- Loading branch information
Showing
18 changed files
with
297 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
apps/app/src/features/page-bulk-export/server/models/page-bulk-export-page-info.ts
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
apps/app/src/features/page-bulk-export/server/models/page-bulk-export-page-snapshot.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { type Document, type Model, Schema } from 'mongoose'; | ||
|
||
import { getOrCreateModel } from '~/server/util/mongoose-utils'; | ||
|
||
import type { IPageBulkExportPageSnapshot } from '../../interfaces/page-bulk-export'; | ||
|
||
export interface PageBulkExportPageSnapshotDocument extends IPageBulkExportPageSnapshot, Document {} | ||
|
||
export type PageBulkExportPageSnapshotModel = Model<PageBulkExportPageSnapshotDocument> | ||
|
||
const pageBulkExportPageInfoSchema = new Schema<PageBulkExportPageSnapshotDocument>({ | ||
pageBulkExportJob: { type: Schema.Types.ObjectId, ref: 'PageBulkExportJob', required: true }, | ||
path: { type: String, required: true }, | ||
revision: { type: Schema.Types.ObjectId, ref: 'Revision', required: true }, | ||
}, { timestamps: true }); | ||
|
||
export default getOrCreateModel<PageBulkExportPageSnapshotDocument, PageBulkExportPageSnapshotModel>( | ||
'PageBulkExportPageSnapshot', pageBulkExportPageInfoSchema, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.