Old question removing and updating

This commit is contained in:
mrfry 2022-05-16 16:22:09 +02:00
parent 4305fe2023
commit 5c2b46f2a3
7 changed files with 440 additions and 36 deletions

View file

@ -34,8 +34,8 @@ interface WorkerObj {
free: Boolean
}
interface TaskObject {
type: 'work' | 'dbEdit' | 'newQuestions' | 'newdb'
export interface TaskObject {
type: 'work' | 'dbEdit' | 'newQuestions' | 'newdb' | 'dbClean' | 'rmQuestions'
data:
| {
searchIn: number[]
@ -50,6 +50,18 @@ interface TaskObject {
| { dbIndex: number; edits: Edits }
| QuestionDb
| Result
| {
questions: Question[]
subjToClean: string
overwriteFromDate: number
qdbIndex: number
}
| {
questionIndexesToRemove: number[][]
subjIndex: number
qdbIndex: number
recievedQuestions: Question[]
}
}
interface PendingJob {