Mark-Lasfar commited on
Commit ·
775acdd
1
Parent(s): c090961
Add GraphQL
Browse files- graphql/resolvers.js +2 -2
- graphql/schema.js +2 -2
graphql/resolvers.js
CHANGED
|
@@ -2635,7 +2635,7 @@ const Query = {
|
|
| 2635 |
userId: story.userId,
|
| 2636 |
textColor: story.textColor || '#ffffff',
|
| 2637 |
allowDownload: story.allowDownload || false,
|
| 2638 |
-
|
| 2639 |
filterIntensity: story.filterIntensity || 0.5, // ✅ أضف هذا
|
| 2640 |
filterApplied: story.filterApplied || false, // ✅ أضف هذا
|
| 2641 |
audio: story.audio || { url: null, publicId: null, duration: 0 }, // ✅ أضف هذا
|
|
@@ -2737,7 +2737,7 @@ const Query = {
|
|
| 2737 |
userId: story.userId,
|
| 2738 |
textColor: story.textColor || '#ffffff',
|
| 2739 |
allowDownload: story.allowDownload || false,
|
| 2740 |
-
|
| 2741 |
filterIntensity: story.filterIntensity || 0.5, // ✅ أضف هذا
|
| 2742 |
filterApplied: story.filterApplied || false, // ✅ أضف هذا
|
| 2743 |
audio: story.audio || { url: null, publicId: null, duration: 0 }, // ✅ أضف هذا
|
|
|
|
| 2635 |
userId: story.userId,
|
| 2636 |
textColor: story.textColor || '#ffffff',
|
| 2637 |
allowDownload: story.allowDownload || false,
|
| 2638 |
+
filter: story.filter || 'none', // ✅ أضف هذا
|
| 2639 |
filterIntensity: story.filterIntensity || 0.5, // ✅ أضف هذا
|
| 2640 |
filterApplied: story.filterApplied || false, // ✅ أضف هذا
|
| 2641 |
audio: story.audio || { url: null, publicId: null, duration: 0 }, // ✅ أضف هذا
|
|
|
|
| 2737 |
userId: story.userId,
|
| 2738 |
textColor: story.textColor || '#ffffff',
|
| 2739 |
allowDownload: story.allowDownload || false,
|
| 2740 |
+
filter: story.filter || 'none', // ✅ أضف هذا
|
| 2741 |
filterIntensity: story.filterIntensity || 0.5, // ✅ أضف هذا
|
| 2742 |
filterApplied: story.filterApplied || false, // ✅ أضف هذا
|
| 2743 |
audio: story.audio || { url: null, publicId: null, duration: 0 }, // ✅ أضف هذا
|
graphql/schema.js
CHANGED
|
@@ -799,8 +799,8 @@ const typeDefs = gql`
|
|
| 799 |
}
|
| 800 |
|
| 801 |
type TextPosition {
|
| 802 |
-
x:
|
| 803 |
-
y:
|
| 804 |
}
|
| 805 |
type StoryMedia {
|
| 806 |
url: String
|
|
|
|
| 799 |
}
|
| 800 |
|
| 801 |
type TextPosition {
|
| 802 |
+
x: Float!
|
| 803 |
+
y: Float!
|
| 804 |
}
|
| 805 |
type StoryMedia {
|
| 806 |
url: String
|