[mob][photos] change return type of method
This commit is contained in:
parent
6bd34014fb
commit
8573649cf7
1 changed files with 5 additions and 3 deletions
|
@ -58,13 +58,15 @@ class MagicCacheService {
|
|||
return randomPrompts;
|
||||
}
|
||||
|
||||
Future<List<int>> getMatchingFileIDsForPromptData(
|
||||
Future<Map<String, List<int>>> getMatchingFileIDsForPromptData(
|
||||
Map<String, Object> promptData,
|
||||
) {
|
||||
return SemanticSearchService.instance.getMatchingFileIDs(
|
||||
) async {
|
||||
final result = await SemanticSearchService.instance.getMatchingFileIDs(
|
||||
promptData["prompt"] as String,
|
||||
promptData["minimumScore"] as double,
|
||||
);
|
||||
|
||||
return {promptData["title"] as String: result};
|
||||
}
|
||||
|
||||
///Generates from 0 to max unique random numbers
|
||||
|
|
Loading…
Add table
Reference in a new issue