mirror of
https://github.com/wekan/wekan.git
synced 2026-03-01 11:20:15 +01:00
Reverted New UI Design of WeKan v8.29 and added more fixes and performance improvements.
Thanks to xet7 !
This commit is contained in:
parent
d152d8fc1b
commit
1b8b8d2eef
196 changed files with 17659 additions and 10028 deletions
22
server/publications/migrationProgress.js
Normal file
22
server/publications/migrationProgress.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { CronJobStatus } from '/server/cronJobStorage';
|
||||
|
||||
// Publish detailed migration progress data for admin users
|
||||
Meteor.publish('migrationProgress', function() {
|
||||
if (!this.userId) {
|
||||
return this.ready();
|
||||
}
|
||||
|
||||
const user = Users.findOne(this.userId);
|
||||
if (!user || !user.isAdmin) {
|
||||
return this.ready();
|
||||
}
|
||||
|
||||
// Publish detailed migration progress documents
|
||||
// This includes current running job details, estimated time, etc.
|
||||
return CronJobStatus.find({
|
||||
$or: [
|
||||
{ jobType: 'migration' },
|
||||
{ jobId: 'migration' }
|
||||
]
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue