<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Aayushi Vaghasiya</title>
    <description>The latest articles on Forem by Aayushi Vaghasiya (@aayushi2501).</description>
    <link>https://forem.com/aayushi2501</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1062880%2F2b5b6437-4437-4809-8654-be3941bf2fa0.jpeg</url>
      <title>Forem: Aayushi Vaghasiya</title>
      <link>https://forem.com/aayushi2501</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/aayushi2501"/>
    <language>en</language>
    <item>
      <title>how to achieve zero-downtime deployment with pm2</title>
      <dc:creator>Aayushi Vaghasiya</dc:creator>
      <pubDate>Tue, 13 Aug 2024 12:39:37 +0000</pubDate>
      <link>https://forem.com/aayushi2501/how-to-achieve-zero-downtime-deployment-with-pm2-ml9</link>
      <guid>https://forem.com/aayushi2501/how-to-achieve-zero-downtime-deployment-with-pm2-ml9</guid>
      <description>&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/78866279/how-to-achieve-zero-downtime-deployment-with-pm2" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/78866279/how-to-achieve-zero-downtime-deployment-with-pm2&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>queue for bookings which can be used with nest js</title>
      <dc:creator>Aayushi Vaghasiya</dc:creator>
      <pubDate>Tue, 19 Dec 2023 04:42:27 +0000</pubDate>
      <link>https://forem.com/aayushi2501/queue-for-bookings-which-can-be-used-with-nest-js-a4o</link>
      <guid>https://forem.com/aayushi2501/queue-for-bookings-which-can-be-used-with-nest-js-a4o</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/77682945/queue-for-bookings-which-can-be-used-with-nest-js" rel="noopener noreferrer"&gt;
            queue for bookings which can be used with nest js
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec 19 '23&lt;/span&gt;
            &lt;span&gt;Comments: 1&lt;/span&gt;
            &lt;span&gt;Answers: 0&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/77682945/queue-for-bookings-which-can-be-used-with-nest-js" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I'm currently working on a project that involves a booking system. However, I've encountered an issue related to oversold bookings. Specifically, when two users attempt to book the same tickets simultaneously, the system sometimes ends up selling more tickets than available (e.g., selling 6 tickets when there are only 5).&lt;/p&gt;
&lt;p&gt;…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/77682945/queue-for-bookings-which-can-be-used-with-nest-js" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>javascript</category>
      <category>programming</category>
      <category>node</category>
      <category>nestjs</category>
    </item>
    <item>
      <title>nested OR query is not working in nest js project with mongoDB database</title>
      <dc:creator>Aayushi Vaghasiya</dc:creator>
      <pubDate>Wed, 29 Nov 2023 05:59:40 +0000</pubDate>
      <link>https://forem.com/aayushi2501/nested-or-query-is-not-working-in-nest-js-project-with-mongodb-database-2b8k</link>
      <guid>https://forem.com/aayushi2501/nested-or-query-is-not-working-in-nest-js-project-with-mongodb-database-2b8k</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/77568606/nested-or-query-is-not-working-in-nest-js-project-with-mongodb-database" rel="noopener noreferrer"&gt;
            nested OR query is not working in nest js project with mongoDB database
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 29 '23&lt;/span&gt;
            &lt;span&gt;Comments: 1&lt;/span&gt;
            &lt;span&gt;Answers: 0&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/77568606/nested-or-query-is-not-working-in-nest-js-project-with-mongodb-database" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Schema in Prisma file&lt;/p&gt;
&lt;p&gt;here described the relation between booking model, webUser and appUser&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;model Booking {
  id                       String                     @id @default(auto()) @map("_id") @db.ObjectId
  venueId                  String?                    @db.ObjectId // relation scalar field (used in the `@relation` attribute above
  phone                    String
  eventId                  String?                    @db.ObjectId
  webUser                  webUser[]                  @relation(fields: [webUserId], references: [id])
  webUserId                String[]                    @db.ObjectId&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/77568606/nested-or-query-is-not-working-in-nest-js-project-with-mongodb-database" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>mongodb</category>
      <category>nestjs</category>
      <category>prisma</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
