@umituz/react-native-ai-creations 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -48,18 +48,15 @@ export class CreationsService extends BaseRepository {
|
|
|
48
48
|
);
|
|
49
49
|
|
|
50
50
|
// 3. Save Metadata to Firestore
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// So I should add `create(userId, creation)` to CreationsRepository.
|
|
61
|
-
|
|
62
|
-
// I will STOP here and update CreationsRepository to have `create` first.
|
|
51
|
+
await this.repository.create(dto.userId, {
|
|
52
|
+
id: creationId,
|
|
53
|
+
uri: imageUrl,
|
|
54
|
+
type: dto.type.id,
|
|
55
|
+
prompt: dto.prompt,
|
|
56
|
+
metadata: dto.metadata,
|
|
57
|
+
createdAt: new Date(),
|
|
58
|
+
isShared: false,
|
|
59
|
+
});
|
|
63
60
|
|
|
64
61
|
return creationId;
|
|
65
62
|
} catch (error) {
|