mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-24 12:14:17 +00:00
remove change partition key e2e tests & delete all sql databases regardless of when created
This commit is contained in:
@@ -85,12 +85,7 @@ async function main() {
|
||||
// }
|
||||
|
||||
const sqlDatabasesToDelete = sqlDatabases.map(async (database) => {
|
||||
const timestamp = Number(database.resource._ts) * 1000;
|
||||
if (timestamp && timestamp < thirtyMinutesAgo) {
|
||||
await deleteWithRetry(client, database, account.name);
|
||||
} else {
|
||||
console.log(`SKIPPED: ${account.name} | ${database.name} | Age: ${friendlyTime(Date.now() - timestamp)}`);
|
||||
}
|
||||
await deleteWithRetry(client, database, account.name);
|
||||
});
|
||||
|
||||
await Promise.all(sqlDatabasesToDelete);
|
||||
|
||||
Reference in New Issue
Block a user