completed list of tag uses (for now)

This commit is contained in:
2025-07-30 23:01:05 +02:00
parent a3723138c1
commit c5f7fd8ec0
4 changed files with 49 additions and 4 deletions

View File

@@ -120,6 +120,13 @@ CREATE TABLE IF NOT EXISTS "{0}" (
result.computeIfAbsent(module, k -> new ArrayList<>()).add(entityId);
}
rs.close();
rs = select(ALL).from(TABLE_TAGS).where(TAG,equal(tag)).where(USER_ID,isNull()).exec(db);
while (rs.next()){
var module = rs.getString(MODULE);
var entityId = rs.getLong(ID);
result.computeIfAbsent(module, k -> new ArrayList<>()).add(entityId);
}
rs.close();
return result;
} catch (SQLException e){
throw new UmbrellaException("Failed to load uses of tag \"{0}\"!",tag);