diff options
author | bobzel <zzzman@gmail.com> | 2023-05-22 11:25:32 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-05-22 11:25:32 -0400 |
commit | bed3309e1fda6597b2a8fea10ad82cd3a0402051 (patch) | |
tree | fe599bbdc5fca2c221e1e0f7a60995b7cd39f870 /src/server/updateProtos.ts | |
parent | 887a4f7e0fc25fde87b20a5de2e7b0aee561cc78 (diff) | |
parent | 3d26d5b2654841a9b92f3d66b28d1dc8e36cca6a (diff) |
merged physics with master
Diffstat (limited to 'src/server/updateProtos.ts')
-rw-r--r-- | src/server/updateProtos.ts | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/server/updateProtos.ts b/src/server/updateProtos.ts index c5552f6bf..2f3772a77 100644 --- a/src/server/updateProtos.ts +++ b/src/server/updateProtos.ts @@ -1,14 +1,22 @@ -import { Database } from "./database"; +import { Database } from './database'; -const protos = - ["text", "image", "web", "collection", "kvp", "video", "audio", "pdf", "icon", "import", "linkdoc", "map"]; +const protos = ['text', 'image', 'web', 'collection', 'kvp', 'video', 'audio', 'pdf', 'icon', 'import', 'linkdoc', 'map']; (async function () { await Promise.all( - protos.map(protoId => new Promise(res => Database.Instance.update(protoId, { - $set: { "fields.baseProto": true } - }, res))) + protos.map( + protoId => + new Promise(res => + Database.Instance.update( + protoId, + { + $set: { 'fields.isBaseProto': true }, + }, + res + ) + ) + ) ); - console.log("done"); -})();
\ No newline at end of file + console.log('done'); +})(); |