Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed Jun 9, 2024
1 parent 184009b commit b7936d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Docker/scripts/deploy_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ fi

if [[ "$DATABASE_PROVIDER" == "postgresql" || "$DATABASE_PROVIDER" == "mysql" ]]; then
export DATABASE_URL
./node_modules/.bin/prisma migrate deploy --schema=prisma/$DATABASE_PROVIDER-schema.prisma
./node_modules/.bin/prisma generate --schema=prisma/$DATABASE_PROVIDER-schema.prisma
./node_modules/.bin/prisma migrate dev --name init --schema ./prisma/$DATABASE_PROVIDER-schema.prisma
else
echo "Error: Database provider $DATABASE_PROVIDER invalid."
exit 1
Expand Down
8 changes: 4 additions & 4 deletions src/api/integrations/typebot/services/typebot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,10 +712,10 @@ export class TypebotService {
listResponseMessage: msg.listResponseMessage?.singleSelectReply?.selectedRowId,
responseRowId: msg.listResponseMessage?.singleSelectReply?.selectedRowId,
// Medias
audioMessage: `audioMessage:${msg.key.id}`,
imageMessage: `imageMessage:${msg.key.id}`,
videoMessage: `videoMessage:${msg.key.id}`,
documentMessage: `documentMessage:${msg.key.id}`,
audioMessage: `audioMessage:${msg?.key?.id}`,
imageMessage: `imageMessage:${msg?.key?.id}`,
videoMessage: `videoMessage:${msg?.key?.id}`,
documentMessage: `documentMessage:${msg?.key?.id}`,
};

const messageType = Object.keys(types).find((key) => types[key] !== undefined) || 'unknown';
Expand Down

0 comments on commit b7936d7

Please sign in to comment.