Skip to content

Commit 186cb12

Browse files
committed
Use lens ID as placeholder for missing user names
1 parent 1b4c969 commit 186cb12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/db.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async function insertLens(lenses) {
229229

230230
for (const lens of lenses) {
231231
// check required fields
232-
if (!lens || !lens.unlockable_id || !lens.lens_name || !lens.user_display_name) {
232+
if (!lens || !lens.unlockable_id || !lens.lens_name) {
233233
console.error(`[Error] Invalid argument, expected lens object:`, lens);
234234
return;
235235
}
@@ -240,6 +240,7 @@ async function insertLens(lenses) {
240240
let args = buildArgs(lens, whitelist, {
241241
uuid: (!lens.uuid && lens.deeplink) ? Util.parseLensUuid(lens.deeplink) : '',
242242
snapcode_url: "",
243+
user_display_name: unlockable_id,
243244
lens_tags: "",
244245
lens_status: "Live",
245246
deeplink: "",

0 commit comments

Comments
 (0)