mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-25 09:30:27 +00:00
Merge branch 'develop' into staging-new
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
commit
d5d69e96e9
@ -184,7 +184,7 @@ async function migrateGmailHistory (
|
||||
const history = db.collection<History>('histories')
|
||||
const allHistories = await history.find({}).toArray()
|
||||
|
||||
const kvsClient = getKvsClient(kvsUrl, token)
|
||||
const kvsClient = getKvsClient('gmail', kvsUrl, token)
|
||||
|
||||
for (const history of allHistories) {
|
||||
try {
|
||||
|
@ -267,7 +267,7 @@ async function processMigrateContentFor (
|
||||
}
|
||||
}
|
||||
|
||||
async function migrateBackupMixins (client: MigrationClient): Promise<void> {
|
||||
export async function migrateBackupMixins (client: MigrationClient): Promise<void> {
|
||||
// Go via classes with domain and check if mixin exists and need to flush %hash%
|
||||
const hierarchy = client.hierarchy
|
||||
const curHash = Date.now().toString(16) // Current hash value
|
||||
@ -959,12 +959,13 @@ export const coreOperation: MigrateOperation = {
|
||||
state: 'accounts-to-social-ids',
|
||||
mode: 'upgrade',
|
||||
func: migrateAccounts
|
||||
},
|
||||
{
|
||||
state: 'migrate-backup-mixins',
|
||||
mode: 'upgrade',
|
||||
func: migrateBackupMixins
|
||||
}
|
||||
// ,
|
||||
// {
|
||||
// state: 'migrate-backup-mixins',
|
||||
// mode: 'upgrade',
|
||||
// func: migrateBackupMixins
|
||||
// }
|
||||
])
|
||||
},
|
||||
async upgrade (state: Map<string, Set<string>>, client: () => Promise<MigrationUpgradeClient>, mode): Promise<void> {
|
||||
|
@ -89,7 +89,7 @@
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
if (person !== undefined) {
|
||||
if ($myInfo === undefined) return
|
||||
if ($myInfo === undefined || (person._id === me && $myInfo?.room === room._id)) return
|
||||
showPopup(PersonActionPopup, { room, person: person._id }, eventToHTMLElement(e))
|
||||
} else {
|
||||
await openRoom(x, y)
|
||||
|
@ -118,7 +118,7 @@ export class DatalakeService implements StorageAdapter {
|
||||
size: (typeof blob.size === 'string' ? parseInt(blob.size) : blob.size) ?? 0,
|
||||
provider: this.opt.name,
|
||||
space: core.space.Configuration,
|
||||
modifiedBy: core.account.ConfigUser,
|
||||
modifiedBy: core.account.System,
|
||||
modifiedOn: 0
|
||||
})
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ export class MinioService implements StorageAdapter {
|
||||
size: data.size,
|
||||
provider: this.opt.name,
|
||||
space: core.space.Configuration,
|
||||
modifiedBy: core.account.ConfigUser,
|
||||
modifiedBy: core.account.System,
|
||||
modifiedOn: data.lastModified.getTime()
|
||||
})
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ export class S3Service implements StorageAdapter {
|
||||
size: data.Size ?? 0,
|
||||
provider: this.opt.name,
|
||||
space: core.space.Configuration,
|
||||
modifiedBy: core.account.ConfigUser,
|
||||
modifiedBy: core.account.System,
|
||||
modifiedOn: data.LastModified?.getTime() ?? 0
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user