mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-26 19:47:30 +00:00
Fetch metadata for null and empty string
This commit is contained in:
parent
af6a5b91eb
commit
c1aae3485a
1 changed files with 4 additions and 1 deletions
|
|
@ -61,7 +61,10 @@ async function allItems(): Promise<string[]> {
|
|||
export async function fillMissingMetadata(count: number) {
|
||||
const ctx = new UserContext();
|
||||
const skins = await knex("ia_items")
|
||||
.where("ia_items.metadata", "")
|
||||
.where((builder) => {
|
||||
builder.where("ia_items.metadata", null)
|
||||
.orWhere("ia_items.metadata", "")
|
||||
})
|
||||
.whereNot("ia_items.identifier", null)
|
||||
.select("ia_items.skin_md5", "ia_items.identifier");
|
||||
console.log(`Found ${skins.length} items to fetch metadata for`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue